diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-06-10 20:11:00 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-06-12 12:14:54 +0300 |
commit | 18bd49c4c7c22a59634c8142d8618f5da8d29250 (patch) | |
tree | 779aaab20031b5dd22d268e0e5ada14c75c9a39d /include | |
parent | 9c7f798d170a848cdcfbb81763c05635900146aa (diff) | |
download | linux-18bd49c4c7c22a59634c8142d8618f5da8d29250.tar.xz |
gpio: omap: constify register tables
We must never alter the register tables; these are read-only as far
as the driver is concerned. Constify these tables.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/platform_data/gpio-omap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/platform_data/gpio-omap.h b/include/linux/platform_data/gpio-omap.h index 7c36370c062e..1ca400005233 100644 --- a/include/linux/platform_data/gpio-omap.h +++ b/include/linux/platform_data/gpio-omap.h @@ -200,7 +200,7 @@ struct omap_gpio_platform_data { bool is_mpuio; /* whether the bank is of type MPUIO */ u32 non_wakeup_gpios; - struct omap_gpio_reg_offs *regs; + const struct omap_gpio_reg_offs *regs; /* Return context loss count due to PM states changing */ int (*get_context_loss_count)(struct device *dev); |