Skip to content

Commit

Permalink
spi: spi-gpio: Make of_device_id array const
Browse files Browse the repository at this point in the history
Make of_device_id array const, because all OF functions
handle it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Jingoo Han authored and Mark Brown committed May 7, 2014
1 parent 790d190 commit d9e1528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ static int spi_gpio_request(struct spi_gpio_platform_data *pdata,
}

#ifdef CONFIG_OF
static struct of_device_id spi_gpio_dt_ids[] = {
static const struct of_device_id spi_gpio_dt_ids[] = {
{ .compatible = "spi-gpio" },
{}
};
Expand Down

0 comments on commit d9e1528

Please sign in to comment.