]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
gpio/mpc8xxx: add a const qualifier
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 21 May 2012 19:57:39 +0000 (21:57 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 23 Jul 2012 15:45:21 +0000 (17:45 +0200)
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]

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/gpio/gpio-mpc8xxx.c

index 5a1817eedd1ba42a661bde558d212d748b9752a3..9ae29cc0d17faf78a5482cbd3b1878e785f45261 100644 (file)
@@ -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)