]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
gpiolib: Remove 'const' from data argument of gpiochip_find()
authorGrant Likely <grant.likely@secretlab.ca>
Sat, 19 May 2012 05:01:05 +0000 (23:01 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 19 May 2012 05:01:05 +0000 (23:01 -0600)
Commit 3d0f7cf0 "gpio: Adjust of_xlate API to support multiple GPIO
chips" changed the api of gpiochip_find to drop const from the data
parameter of the match hook, but didn't also drop const from data
causing a build warning.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpiolib.c
include/asm-generic/gpio.h

index e48b70c6ddf11b767b75a86c864360a52832790a..120b2a0e3167fd7a8210fbbb8e86ee336ea7efc5 100644 (file)
@@ -1154,7 +1154,7 @@ EXPORT_SYMBOL_GPL(gpiochip_remove);
  * non-zero, this function will return to the caller and not iterate over any
  * more gpio_chips.
  */
-struct gpio_chip *gpiochip_find(const void *data,
+struct gpio_chip *gpiochip_find(void *data,
                                int (*match)(struct gpio_chip *chip,
                                             void *data))
 {
index 1ba08f0e49a302abedb13982b3318bc1b318b7b8..365ea09ed3b05c951b328fa95c51dbe82182566e 100644 (file)
@@ -142,7 +142,7 @@ extern int __must_check gpiochip_reserve(int start, int ngpio);
 /* add/remove chips */
 extern int gpiochip_add(struct gpio_chip *chip);
 extern int __must_check gpiochip_remove(struct gpio_chip *chip);
-extern struct gpio_chip *gpiochip_find(const void *data,
+extern struct gpio_chip *gpiochip_find(void *data,
                                        int (*match)(struct gpio_chip *chip,
                                                     void *data));