aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-06-10 13:11:00 -0400
committerLinus Walleij <linus.walleij@linaro.org>2019-06-12 05:14:54 -0400
commit18bd49c4c7c22a59634c8142d8618f5da8d29250 (patch)
tree779aaab20031b5dd22d268e0e5ada14c75c9a39d /include/linux/platform_data
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')
-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 {
200 bool is_mpuio; /* whether the bank is of type MPUIO */ 200 bool is_mpuio; /* whether the bank is of type MPUIO */
201 u32 non_wakeup_gpios; 201 u32 non_wakeup_gpios;
202 202
203 struct omap_gpio_reg_offs *regs; 203 const struct omap_gpio_reg_offs *regs;
204 204
205 /* Return context loss count due to PM states changing */ 205 /* Return context loss count due to PM states changing */
206 int (*get_context_loss_count)(struct device *dev); 206 int (*get_context_loss_count)(struct device *dev);