diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2016-04-25 06:38:32 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-04-29 04:59:45 -0400 |
commit | 804f56804d480edc3463a91bbcb39e3b4abd2ac6 (patch) | |
tree | 6a8037656fa1f32ef27fc6cbd7d4888037182a8f /drivers/gpio/gpio-tegra.c | |
parent | 171b92c830f48bd546e2d68d6f511b3d87e0544e (diff) |
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 <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>
Diffstat (limited to 'drivers/gpio/gpio-tegra.c')
-rw-r--r-- | drivers/gpio/gpio-tegra.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
560 | return 0; | 560 | return 0; |
561 | } | 561 | } |
562 | 562 | ||
563 | static struct tegra_gpio_soc_config tegra20_gpio_config = { | 563 | static const struct tegra_gpio_soc_config tegra20_gpio_config = { |
564 | .bank_stride = 0x80, | 564 | .bank_stride = 0x80, |
565 | .upper_offset = 0x800, | 565 | .upper_offset = 0x800, |
566 | }; | 566 | }; |
567 | 567 | ||
568 | static struct tegra_gpio_soc_config tegra30_gpio_config = { | 568 | static const struct tegra_gpio_soc_config tegra30_gpio_config = { |
569 | .bank_stride = 0x100, | 569 | .bank_stride = 0x100, |
570 | .upper_offset = 0x80, | 570 | .upper_offset = 0x80, |
571 | }; | 571 | }; |