aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index a33bfc23e9f5..c2534d62911c 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -172,12 +172,12 @@ static int gpio_ensure_requested(struct gpio_desc *desc)
172 return 0; 172 return 0;
173} 173}
174 174
175/* caller holds gpio_lock *OR* gpio is marked as requested */
176static struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc) 175static struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc)
177{ 176{
178 return desc ? desc->chip : NULL; 177 return desc ? desc->chip : NULL;
179} 178}
180 179
180/* caller holds gpio_lock *OR* gpio is marked as requested */
181struct gpio_chip *gpio_to_chip(unsigned gpio) 181struct gpio_chip *gpio_to_chip(unsigned gpio)
182{ 182{
183 return gpiod_to_chip(gpio_to_desc(gpio)); 183 return gpiod_to_chip(gpio_to_desc(gpio));