diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2012-05-19 07:01:05 +0200 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-05-19 07:01:05 +0200 |
commit | 07ce8ec7308ab3fa55fe2861671b157f857fff58 (patch) | |
tree | 4e0b2fa2f61bbae54ecfc5be7d88e4501ca497ec /include/asm-generic/gpio.h | |
parent | gpio/rc5t583: add gpio driver for RICOH PMIC RC5T583 (diff) | |
download | linux-07ce8ec7308ab3fa55fe2861671b157f857fff58.tar.xz linux-07ce8ec7308ab3fa55fe2861671b157f857fff58.zip |
gpiolib: Remove 'const' from data argument of gpiochip_find()
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>
Diffstat (limited to 'include/asm-generic/gpio.h')
-rw-r--r-- | include/asm-generic/gpio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index 1ba08f0e49a3..365ea09ed3b0 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -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)); |