1
0
Fork 0

gpiolib: of: remove gpio_to_desc() usage

As demonstrated by commit
390d82e312
"gpiolib: ACPI: remove gpio_to_desc() usage"

gpio_to_desc() must die. Replace one of its usage by the
newly-introduced gpiochip_get_desc() function.

Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
hifive-unleashed-5.1
Linus Walleij 2014-04-22 14:38:21 +02:00
parent ef7de2625f
commit ccd9726e05
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ static int of_gpiochip_find_and_xlate(struct gpio_chip *gc, void *data)
if (ret < 0)
return false;
gg_data->out_gpio = gpio_to_desc(ret + gc->base);
gg_data->out_gpio = gpiochip_get_desc(gc, ret);
return true;
}