mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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 <linus.walleij@linaro.org> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
This commit is contained in:
parent
d7c9a53f13
commit
c06e6769a8
@ -1440,19 +1440,19 @@ static struct omap_gpio_reg_offs omap4_gpio_regs = {
|
|||||||
.fallingdetect = OMAP4_GPIO_FALLINGDETECT,
|
.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,
|
.regs = &omap2_gpio_regs,
|
||||||
.bank_width = 32,
|
.bank_width = 32,
|
||||||
.dbck_flag = false,
|
.dbck_flag = false,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct omap_gpio_platform_data omap3_pdata = {
|
const static struct omap_gpio_platform_data omap3_pdata = {
|
||||||
.regs = &omap2_gpio_regs,
|
.regs = &omap2_gpio_regs,
|
||||||
.bank_width = 32,
|
.bank_width = 32,
|
||||||
.dbck_flag = true,
|
.dbck_flag = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct omap_gpio_platform_data omap4_pdata = {
|
const static struct omap_gpio_platform_data omap4_pdata = {
|
||||||
.regs = &omap4_gpio_regs,
|
.regs = &omap4_gpio_regs,
|
||||||
.bank_width = 32,
|
.bank_width = 32,
|
||||||
.dbck_flag = true,
|
.dbck_flag = true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user