Message ID | 1461580714-22479-3-git-send-email-ldewangan@nvidia.com |
---|---|
State | New |
Headers | show |
On Mon, Apr 25, 2016 at 12:38 PM, Laxman Dewangan <ldewangan@nvidia.com> wrote: > 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 <ldewangan@nvidia.com> > Suggested-by: Thierry Reding <treding@nvidia.com> > Reviewed-by: Stephen Warren <swarren@nvidia.com> Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 1b0c497..cd69422 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, };