* [PATCH V1] gpio: tps65910: Use correct offset for gpio initialization
@ 2012-01-18 14:37 Laxman Dewangan
2012-01-18 20:49 ` Grant Likely
0 siblings, 1 reply; 2+ messages in thread
From: Laxman Dewangan @ 2012-01-18 14:37 UTC (permalink / raw)
To: grant.likely, linus.walleij; +Cc: linux-kernel, linux-tegra, ldewangan
Using the correct gpio offset for setting the initial value
of gpio when setting output direction.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
drivers/gpio/gpio-tps65910.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpio/gpio-tps65910.c b/drivers/gpio/gpio-tps65910.c
index b9c1c29..91f45b9 100644
--- a/drivers/gpio/gpio-tps65910.c
+++ b/drivers/gpio/gpio-tps65910.c
@@ -52,7 +52,7 @@ static int tps65910_gpio_output(struct gpio_chip *gc, unsigned offset,
struct tps65910 *tps65910 = container_of(gc, struct tps65910, gpio);
/* Set the initial value */
- tps65910_gpio_set(gc, 0, value);
+ tps65910_gpio_set(gc, offset, value);
return tps65910_set_bits(tps65910, TPS65910_GPIO0 + offset,
GPIO_CFG_MASK);
--
1.7.1.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH V1] gpio: tps65910: Use correct offset for gpio initialization
2012-01-18 14:37 [PATCH V1] gpio: tps65910: Use correct offset for gpio initialization Laxman Dewangan
@ 2012-01-18 20:49 ` Grant Likely
0 siblings, 0 replies; 2+ messages in thread
From: Grant Likely @ 2012-01-18 20:49 UTC (permalink / raw)
To: Laxman Dewangan; +Cc: linus.walleij, linux-kernel, linux-tegra
On Wed, Jan 18, 2012 at 08:07:35PM +0530, Laxman Dewangan wrote:
> Using the correct gpio offset for setting the initial value
> of gpio when setting output direction.
>
> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Applied, thanks.
g.
> ---
> drivers/gpio/gpio-tps65910.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpio/gpio-tps65910.c b/drivers/gpio/gpio-tps65910.c
> index b9c1c29..91f45b9 100644
> --- a/drivers/gpio/gpio-tps65910.c
> +++ b/drivers/gpio/gpio-tps65910.c
> @@ -52,7 +52,7 @@ static int tps65910_gpio_output(struct gpio_chip *gc, unsigned offset,
> struct tps65910 *tps65910 = container_of(gc, struct tps65910, gpio);
>
> /* Set the initial value */
> - tps65910_gpio_set(gc, 0, value);
> + tps65910_gpio_set(gc, offset, value);
>
> return tps65910_set_bits(tps65910, TPS65910_GPIO0 + offset,
> GPIO_CFG_MASK);
> --
> 1.7.1.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-18 20:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-18 14:37 [PATCH V1] gpio: tps65910: Use correct offset for gpio initialization Laxman Dewangan
2012-01-18 20:49 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®