* [PATCH] GPIO: clps711x: Fix return value for gpio_clps711x_get
@ 2012-10-24 6:58 Alexander Shiyan
2012-10-24 8:03 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shiyan @ 2012-10-24 6:58 UTC (permalink / raw)
To: linux-arm-kernel
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
drivers/gpio/gpio-clps711x.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c
index ea21822..0753b3a 100644
--- a/drivers/gpio/gpio-clps711x.c
+++ b/drivers/gpio/gpio-clps711x.c
@@ -47,7 +47,7 @@ static void __iomem *clps711x_pdirs[] = {
static int gpio_clps711x_get(struct gpio_chip *chip, unsigned offset)
{
- return !!readb(clps711x_port(chip)) & (1 << offset);
+ return !!(readb(clps711x_port(chip)) & (1 << offset));
}
static void gpio_clps711x_set(struct gpio_chip *chip, unsigned offset,
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] GPIO: clps711x: Fix return value for gpio_clps711x_get
2012-10-24 6:58 [PATCH] GPIO: clps711x: Fix return value for gpio_clps711x_get Alexander Shiyan
@ 2012-10-24 8:03 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2012-10-24 8:03 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Oct 24, 2012 at 8:58 AM, Alexander Shiyan <shc_work@mail.ru> wrote:
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
> drivers/gpio/gpio-clps711x.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Thanks, patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-24 8:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-24 6:58 [PATCH] GPIO: clps711x: Fix return value for gpio_clps711x_get Alexander Shiyan
2012-10-24 8:03 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).