mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Suggested-by: Thierry Reding <[email protected]> Reviewed-by: Stephen Warren <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
171b92c830
commit
804f56804d
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue