projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
143b65d
)
gpio: tpic2810: Make tpic2810_direction_output set proper output level
author
Axel Lin
<axel.lin@ingics.com>
Mon, 15 Feb 2016 12:09:14 +0000
(20:09 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 16 Feb 2016 14:56:51 +0000
(15:56 +0100)
The .direction_output callback should set proper output level.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tpic2810.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-tpic2810.c
b/drivers/gpio/gpio-tpic2810.c
index 032d058c0d2878ebaa103af2825bc6a1722bd27a..9f020aa4b067f62ac6ab5742d152008b8d50560c 100644
(file)
--- a/
drivers/gpio/gpio-tpic2810.c
+++ b/
drivers/gpio/gpio-tpic2810.c
@@
-33,6
+33,8
@@
struct tpic2810 {
struct mutex lock;
};
+static void tpic2810_set(struct gpio_chip *chip, unsigned offset, int value);
+
static int tpic2810_get_direction(struct gpio_chip *chip,
unsigned offset)
{
@@
-51,6
+53,7
@@
static int tpic2810_direction_output(struct gpio_chip *chip,
unsigned offset, int value)
{
/* This device always output */
+ tpic2810_set(chip, offset, value);
return 0;
}