From: Uwe Kleine-König Date: Mon, 21 May 2012 19:57:39 +0000 (+0200) Subject: gpio/mpc8xxx: add a const qualifier X-Git-Tag: next-20120725~11^2^2^2~17 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8b58ef43e0165eb42ed8b009c3c39fca183465a4;p=karo-tx-linux.git 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] Signed-off-by: Uwe Kleine-König --- diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c index 5a1817eedd1b..9ae29cc0d17f 100644 --- a/drivers/gpio/gpio-mpc8xxx.c +++ b/drivers/gpio/gpio-mpc8xxx.c @@ -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)