projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef7de26
)
gpiolib: of: remove gpio_to_desc() usage
author
Linus Walleij
<linus.walleij@linaro.org>
Tue, 22 Apr 2014 12:38:21 +0000
(14:38 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 28 Apr 2014 19:35:09 +0000
(12:35 -0700)
As demonstrated by commit
390d82e312c56b75407a3606cbcde8c4bc7f10ae
"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>
drivers/gpio/gpiolib-of.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpiolib-of.c
b/drivers/gpio/gpiolib-of.c
index 2024d45e5503624ba7c1b9ff7d75f91fb4e912e1..db98d3a12f707ad5cdf9d2325813ac83641be3db 100644
(file)
--- a/
drivers/gpio/gpiolib-of.c
+++ b/
drivers/gpio/gpiolib-of.c
@@
-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 = gpio
chip_get_desc(gc, ret
);
return true;
}