gpio: constify the data parameter to gpiochip_find()

Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
Grant Likely 2012-03-02 15:56:03 -07:00
commit 6e2cf65140
3 changed files with 6 additions and 5 deletions

View file

@ -229,7 +229,7 @@ void of_gpiochip_remove(struct gpio_chip *chip)
}
/* Private function for resolving node pointer to gpio_chip */
static int of_gpiochip_is_match(struct gpio_chip *chip, void *data)
static int of_gpiochip_is_match(struct gpio_chip *chip, const void *data)
{
return chip->of_node == data;
}