aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2016-04-25 16:08:32 +0530
committerLinus Walleij <linus.walleij@linaro.org>2016-04-29 10:59:45 +0200
commit804f56804d480edc3463a91bbcb39e3b4abd2ac6 (patch)
tree6a8037656fa1f32ef27fc6cbd7d4888037182a8f /drivers/gpio
parentgpio: tegra: Don't open code of_device_get_match_data() (diff)
downloadlinux-dev-804f56804d480edc3463a91bbcb39e3b4abd2ac6.tar.xz
linux-dev-804f56804d480edc3463a91bbcb39e3b4abd2ac6.zip
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')
-rw-r--r--drivers/gpio/gpio-tegra.c4
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)
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,
};