Re: [PATCH] iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value

2017-04-27 Thread Jonathan Cameron
On 26/04/17 14:55, Srinivas Pandruvada wrote: > On Wed, 2017-04-26 at 07:32 +0100, Jonathan Cameron wrote: >> On 19/04/17 15:35, Colin King wrote: >>> >>> From: Colin Ian King >>> >>> Ensure that when an invalid value in ret or value is found -EINVAL >>> is returned. A

Re: [PATCH] iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value

2017-04-27 Thread Jonathan Cameron
On 26/04/17 14:55, Srinivas Pandruvada wrote: > On Wed, 2017-04-26 at 07:32 +0100, Jonathan Cameron wrote: >> On 19/04/17 15:35, Colin King wrote: >>> >>> From: Colin Ian King >>> >>> Ensure that when an invalid value in ret or value is found -EINVAL >>> is returned. A previous commit broke the

Re: [PATCH] iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value

2017-04-26 Thread Srinivas Pandruvada
On Wed, 2017-04-26 at 07:32 +0100, Jonathan Cameron wrote: > On 19/04/17 15:35, Colin King wrote: > > > > From: Colin Ian King > > > > Ensure that when an invalid value in ret or value is found -EINVAL > > is returned. A previous commit broke the way the return error

Re: [PATCH] iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value

2017-04-26 Thread Srinivas Pandruvada
On Wed, 2017-04-26 at 07:32 +0100, Jonathan Cameron wrote: > On 19/04/17 15:35, Colin King wrote: > > > > From: Colin Ian King > > > > Ensure that when an invalid value in ret or value is found -EINVAL > > is returned. A previous commit broke the way the return error is > > being returned and

Re: [PATCH] iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value

2017-04-26 Thread Jonathan Cameron
On 19/04/17 15:35, Colin King wrote: > From: Colin Ian King > > Ensure that when an invalid value in ret or value is found -EINVAL > is returned. A previous commit broke the way the return error is > being returned and instead caused the return code in ret to be >

Re: [PATCH] iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value

2017-04-26 Thread Jonathan Cameron
On 19/04/17 15:35, Colin King wrote: > From: Colin Ian King > > Ensure that when an invalid value in ret or value is found -EINVAL > is returned. A previous commit broke the way the return error is > being returned and instead caused the return code in ret to be > re-assigned rather than be

[PATCH] iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value

2017-04-19 Thread Colin King
From: Colin Ian King Ensure that when an invalid value in ret or value is found -EINVAL is returned. A previous commit broke the way the return error is being returned and instead caused the return code in ret to be re-assigned rather than be returned. Fixes:

[PATCH] iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value

2017-04-19 Thread Colin King
From: Colin Ian King Ensure that when an invalid value in ret or value is found -EINVAL is returned. A previous commit broke the way the return error is being returned and instead caused the return code in ret to be re-assigned rather than be returned. Fixes: 5d9854eaea776 ("iio: hid-sensor: