mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
gpio/mpc8xxx: add a const qualifier
This prepares *of_device_id.data becoming const. Without this change the following warning would occur: drivers/gpio/gpio-mpc8xxx.c: In function 'mpc8xxx_add_controller': drivers/gpio/gpio-mpc8xxx.c:360:30: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
This commit is contained in:
parent
f6817a2c2e
commit
01a04ddc86
@ -38,7 +38,7 @@ struct mpc8xxx_gpio_chip {
|
||||
*/
|
||||
u32 data;
|
||||
struct irq_domain *irq;
|
||||
void *of_dev_id_data;
|
||||
const void *of_dev_id_data;
|
||||
};
|
||||
|
||||
static inline u32 mpc8xxx_gpio2mask(unsigned int gpio)
|
||||
|
Loading…
Reference in New Issue
Block a user