Re: [PATCH 2/2] iio: ad7793: Fix the serial interface reset

2017-09-10 Thread Jonathan Cameron
On Tue, 5 Sep 2017 14:17:21 +0200 Lars-Peter Clausen wrote: > On 09/05/2017 02:16 PM, Dragos Bogdan wrote: > > The serial interface can be reset by writing 32 consecutive 1s to the > > device. > > 'ret' was initialized correctly but its value was overwritten when > > ad7793_check_platform_data()

Re: [PATCH 2/2] iio: ad7793: Fix the serial interface reset

2017-09-05 Thread Lars-Peter Clausen
On 09/05/2017 02:16 PM, Dragos Bogdan wrote: > The serial interface can be reset by writing 32 consecutive 1s to the device. > 'ret' was initialized correctly but its value was overwritten when > ad7793_check_platform_data() was called. Since a dedicated reset function > is present now, it should b

[PATCH 2/2] iio: ad7793: Fix the serial interface reset

2017-09-05 Thread Dragos Bogdan
The serial interface can be reset by writing 32 consecutive 1s to the device. 'ret' was initialized correctly but its value was overwritten when ad7793_check_platform_data() was called. Since a dedicated reset function is present now, it should be used instead. Fixes: 2edb769d246e ("iio:ad7793: Ad