Re: [PATCH v2] iio: light: ltr501: claim direct mode during raw writes

2016-10-22 Thread Jonathan Cameron
On 17/10/16 22:10, Peter Meerwald-Stadler wrote: > On Sun, 16 Oct 2016, Jonathan Cameron wrote: > >> On 16/10/16 06:02, Alison Schofield wrote: >>> Driver was checking for direct mode but not locking it. Use >>> claim/release helper functions to guarantee the device stays >>> in direct mode

Re: [PATCH v2] iio: light: ltr501: claim direct mode during raw writes

2016-10-22 Thread Jonathan Cameron
On 17/10/16 22:10, Peter Meerwald-Stadler wrote: > On Sun, 16 Oct 2016, Jonathan Cameron wrote: > >> On 16/10/16 06:02, Alison Schofield wrote: >>> Driver was checking for direct mode but not locking it. Use >>> claim/release helper functions to guarantee the device stays >>> in direct mode

Re: [PATCH v2] iio: light: ltr501: claim direct mode during raw writes

2016-10-17 Thread Peter Meerwald-Stadler
On Sun, 16 Oct 2016, Jonathan Cameron wrote: > On 16/10/16 06:02, Alison Schofield wrote: > > Driver was checking for direct mode but not locking it. Use > > claim/release helper functions to guarantee the device stays > > in direct mode during all raw write operations. > > > > Signed-off-by:

Re: [PATCH v2] iio: light: ltr501: claim direct mode during raw writes

2016-10-17 Thread Peter Meerwald-Stadler
On Sun, 16 Oct 2016, Jonathan Cameron wrote: > On 16/10/16 06:02, Alison Schofield wrote: > > Driver was checking for direct mode but not locking it. Use > > claim/release helper functions to guarantee the device stays > > in direct mode during all raw write operations. > > > > Signed-off-by:

Re: [PATCH v2] iio: light: ltr501: claim direct mode during raw writes

2016-10-16 Thread Jonathan Cameron
On 16/10/16 06:02, Alison Schofield wrote: > Driver was checking for direct mode but not locking it. Use > claim/release helper functions to guarantee the device stays > in direct mode during all raw write operations. > > Signed-off-by: Alison Schofield > --- > Changes in

Re: [PATCH v2] iio: light: ltr501: claim direct mode during raw writes

2016-10-16 Thread Jonathan Cameron
On 16/10/16 06:02, Alison Schofield wrote: > Driver was checking for direct mode but not locking it. Use > claim/release helper functions to guarantee the device stays > in direct mode during all raw write operations. > > Signed-off-by: Alison Schofield > --- > Changes in v2: > Replaced 'goto

[PATCH v2] iio: light: ltr501: claim direct mode during raw writes

2016-10-15 Thread Alison Schofield
Driver was checking for direct mode but not locking it. Use claim/release helper functions to guarantee the device stays in direct mode during all raw write operations. Signed-off-by: Alison Schofield --- Changes in v2: Replaced 'goto release' statements with breaks.

[PATCH v2] iio: light: ltr501: claim direct mode during raw writes

2016-10-15 Thread Alison Schofield
Driver was checking for direct mode but not locking it. Use claim/release helper functions to guarantee the device stays in direct mode during all raw write operations. Signed-off-by: Alison Schofield --- Changes in v2: Replaced 'goto release' statements with breaks. The release helper