Commit 804f5680 authored by Laxman Dewangan's avatar Laxman Dewangan Committed by Linus Walleij

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: default avatarLaxman Dewangan <ldewangan@nvidia.com>
Suggested-by: default avatarThierry Reding <treding@nvidia.com>
Reviewed-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 171b92c8
...@@ -560,12 +560,12 @@ static int tegra_gpio_probe(struct platform_device *pdev) ...@@ -560,12 +560,12 @@ static int tegra_gpio_probe(struct platform_device *pdev)
return 0; return 0;
} }
static struct tegra_gpio_soc_config tegra20_gpio_config = { static const struct tegra_gpio_soc_config tegra20_gpio_config = {
.bank_stride = 0x80, .bank_stride = 0x80,
.upper_offset = 0x800, .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, .bank_stride = 0x100,
.upper_offset = 0x80, .upper_offset = 0x80,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment