[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 12 Dec 2011 15:30:43 +0100
From: Samuel Ortiz <sameo@...ux.intel.com>
To: Marcus Folkesson <marcus.folkesson@...il.com>,
Graeme Gregory <gg@...mlogic.co.uk>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mfd: tps65910: Handle clear-mask correctly
Hi Marcus,
On Tue, Nov 22, 2011 at 02:39:51PM +0100, Marcus Folkesson wrote:
> The function is not actually cleaing the bitmask.
This looks like a valid fix, and all the tps65910_clear_bits() callers seem to
expect that behaviour. Graeme, I'm going to try to push this one for 3.2,
unless you object to it.
Cheers,
Samuel.
> Signed-off-by: Marcus Folkesson <marcus.folkesson@...il.com>
> ---
> drivers/mfd/tps65910.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
> index 6f5b8cf..c1da84b 100644
> --- a/drivers/mfd/tps65910.c
> +++ b/drivers/mfd/tps65910.c
> @@ -120,7 +120,7 @@ int tps65910_clear_bits(struct tps65910 *tps65910, u8 reg, u8 mask)
> goto out;
> }
>
> - data &= mask;
> + data &= ~mask;
> err = tps65910_i2c_write(tps65910, reg, 1, &data);
> if (err)
> dev_err(tps65910->dev, "write to reg %x failed\n", reg);
> --
> 1.7.5.4
>
--
Intel Open Source Technology Centre
http://oss.intel.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists