gpio: tegra: Make of_device_id compatible data to constant
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 25 Apr 2016 10:38:32 +0000 (16:08 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 29 Apr 2016 08:59:45 +0000 (10:59 +0200)
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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tegra.c

index 1b0c4975fc9777461373f71dfcaee519b5aadf91..cd69422f3646faa4494550b45a7d3b9292df0f13 100644 (file)
@@ -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,
 };