Commit 01a04ddc86f904eff65e1668cf6524a58203fe2d

Authored by Uwe Kleine-König
1 parent f6817a2c2e

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/gpio/gpio-mpc8xxx.c
... ... @@ -38,7 +38,7 @@
38 38 */
39 39 u32 data;
40 40 struct irq_domain *irq;
41   - void *of_dev_id_data;
  41 + const void *of_dev_id_data;
42 42 };
43 43  
44 44 static inline u32 mpc8xxx_gpio2mask(unsigned int gpio)