[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <282e1814-c1f0-4c13-65ed-6bf78cd83c35@kernel.org>
Date: Fri, 3 Jun 2016 13:13:18 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: Lars-Peter Clausen <lars@...afoo.de>,
Alison Schofield <amsfield22@...il.com>
Cc: Michael.Hennerich@...log.com, knaack.h@....de, pmeerw@...erw.net,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 2/7] iio: adc: ad7791: claim direct mode when writing
frequency
On 01/06/16 20:10, Lars-Peter Clausen wrote:
> On 06/01/2016 06:35 AM, Alison Schofield wrote:
>> Driver was checking for direct mode and trying to lock it, but
>> left a gap where mode could change before the desired operation.
>> Use iio_device_claim_direct_mode() to guarantee device stays in
>> direct mode.
>>
>> Refactor function to clarify look-up followed by lock sequence.
>>
>> Signed-off-by: Alison Schofield <amsfield22@...il.com>
>> Cc: Daniel Baluta <daniel.baluta@...il.com>
>
> Looks good, thanks.
>
> Acked-by: Lars-Peter Clausen <lars@...afoo.de>
Applied - thanks.
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Powered by blists - more mailing lists