summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/gpio-omap.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-06-10 20:11:00 +0300
committerLinus Walleij <linus.walleij@linaro.org>2019-06-12 11:14:54 +0200
commit18bd49c4c7c22a59634c8142d8618f5da8d29250 (patch)
tree779aaab20031b5dd22d268e0e5ada14c75c9a39d /include/linux/platform_data/gpio-omap.h
parent9c7f798d170a848cdcfbb81763c05635900146aa (diff)
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/linux/platform_data/gpio-omap.h')
-rw-r--r--include/linux/platform_data/gpio-omap.h2
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);