* + cs5535_gpio-gpio_chipget-should-return-the-input-value.patch added to -mm tree
@ 2010-02-24 22:58 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2010-02-24 22:58 UTC (permalink / raw)
To: mm-commits; +Cc: gardner.ben, dilinger
The patch titled
cs5535_gpio: gpio_chip.get should return the input value
has been added to the -mm tree. Its filename is
cs5535_gpio-gpio_chipget-should-return-the-input-value.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: cs5535_gpio: gpio_chip.get should return the input value
From: Ben Gardner <gardner.ben@gmail.com>
The gpio_chip.get() function for the CS5535 GPIO driver currently returns
the output value instead of the input value. This patch changes it to
return the input value.
Signed-off-by: Ben Gardner <gardner.ben@gmail.com>
Cc: Andres Salomon <dilinger@collabora.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/gpio/cs5535-gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/gpio/cs5535-gpio.c~cs5535_gpio-gpio_chipget-should-return-the-input-value drivers/gpio/cs5535-gpio.c
--- a/drivers/gpio/cs5535-gpio.c~cs5535_gpio-gpio_chipget-should-return-the-input-value
+++ a/drivers/gpio/cs5535-gpio.c
@@ -154,7 +154,7 @@ static int chip_gpio_request(struct gpio
static int chip_gpio_get(struct gpio_chip *chip, unsigned offset)
{
- return cs5535_gpio_isset(offset, GPIO_OUTPUT_VAL);
+ return cs5535_gpio_isset(offset, GPIO_READ_BACK);
}
static void chip_gpio_set(struct gpio_chip *chip, unsigned offset, int val)
_
Patches currently in -mm which might be from gardner.ben@gmail.com are
cs5535_gpio-gpio_chipget-should-return-the-input-value.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-02-24 22:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-24 22:58 + cs5535_gpio-gpio_chipget-should-return-the-input-value.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.