aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2012-07-06 20:20:15 +0000
committerUwe Kleine-König <[email protected]>2012-09-11 06:57:27 +0000
commitc06e6769a89ae6fe7a2eb429224fa30cacdccdb1 (patch)
treeac2dce95f8bec8af821a0229ef30c05281a85651
parentof: add const to struct *of_device_id.data (diff)
downloadkernel-c06e6769a89ae6fe7a2eb429224fa30cacdccdb1.tar.gz
kernel-c06e6769a89ae6fe7a2eb429224fa30cacdccdb1.zip
gpio/gpio-omap: make platformdata used as *of_device_id.data const
Since of_device_id.data is declared as a pointer to const data a few more consts can be added in this driver. Acked-by: Linus Walleij <[email protected]> Acked-by: Santosh Shilimkar <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]>
-rw-r--r--drivers/gpio/gpio-omap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c
index cc0b46df7770..0725d181581f 100644
--- a/drivers/gpio/gpio-omap.c
+++ b/drivers/gpio/gpio-omap.c
@@ -1440,19 +1440,19 @@ static struct omap_gpio_reg_offs omap4_gpio_regs = {
.fallingdetect = OMAP4_GPIO_FALLINGDETECT,
};
-static struct omap_gpio_platform_data omap2_pdata = {
+const static struct omap_gpio_platform_data omap2_pdata = {
.regs = &omap2_gpio_regs,
.bank_width = 32,
.dbck_flag = false,
};
-static struct omap_gpio_platform_data omap3_pdata = {
+const static struct omap_gpio_platform_data omap3_pdata = {
.regs = &omap2_gpio_regs,
.bank_width = 32,
.dbck_flag = true,
};
-static struct omap_gpio_platform_data omap4_pdata = {
+const static struct omap_gpio_platform_data omap4_pdata = {
.regs = &omap4_gpio_regs,
.bank_width = 32,
.dbck_flag = true,