From: Laxman Dewangan Date: Mon, 25 Apr 2016 10:38:32 +0000 (+0530) Subject: gpio: tegra: Make of_device_id compatible data to constant X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=804f56804d480edc3463a91bbcb39e3b4abd2ac6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git gpio: tegra: Make of_device_id compatible data to constant The data member of the of_device_id is the constant type and hence all static structure which is used for this initialisation as static. Signed-off-by: Laxman Dewangan Suggested-by: Thierry Reding Reviewed-by: Stephen Warren Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 1b0c4975fc97..cd69422f3646 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -560,12 +560,12 @@ static int tegra_gpio_probe(struct platform_device *pdev) return 0; } -static struct tegra_gpio_soc_config tegra20_gpio_config = { +static const struct tegra_gpio_soc_config tegra20_gpio_config = { .bank_stride = 0x80, .upper_offset = 0x800, }; -static struct tegra_gpio_soc_config tegra30_gpio_config = { +static const struct tegra_gpio_soc_config tegra30_gpio_config = { .bank_stride = 0x100, .upper_offset = 0x80, };