Re: [PATCH v2 3/7] iio: adc: ad7793: claim direct mode when writing frequency
From: Lars-Peter Clausen
Date: Thu Jun 02 2016 - 04:37:28 EST
On 06/02/2016 06:28 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@xxxxxxxxx>
> Cc: Daniel Baluta <daniel.baluta@xxxxxxxxx>
Looks good, thanks.
Acked-by: Lars-Peter Clausen <lars@xxxxxxxxxx>