mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00:00
gpiolib: of: Use device_match_of_node() helper
Instead of open coding, use device_match_of_node() helper. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
This commit is contained in:
parent
6169d76c56
commit
597a8a888d
@ -720,7 +720,7 @@ static void of_gpiochip_remove_hog(struct gpio_chip *chip,
|
||||
|
||||
static int of_gpiochip_match_node(struct gpio_chip *chip, void *data)
|
||||
{
|
||||
return chip->gpiodev->dev.of_node == data;
|
||||
return device_match_of_node(&chip->gpiodev->dev, data);
|
||||
}
|
||||
|
||||
static struct gpio_chip *of_find_gpiochip_by_node(struct device_node *np)
|
||||
|
Loading…
Reference in New Issue
Block a user