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>
This commit is contained in:
Laxman Dewangan 2016-04-25 16:08:32 +05:30 коммит произвёл Linus Walleij
Родитель 171b92c830
Коммит 804f56804d
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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,
};