Re: [PATCH v2] iio: dac: ad5446: Don't set error code to voltage_uv

2012-12-18 Thread Jonathan Cameron
On 12/18/2012 03:33 AM, Axel Lin wrote: > regulator_get_voltage() may return negative error code. > Add error checking to avoid setting error code to voltage_uv. > > Signed-off-by: Axel Lin added to fixes-togreg branch of iio.git > --- > Sorry. Just found I made the same mistake again. > Here is

Re: [PATCH v2] iio: dac: ad5446: Don't set error code to voltage_uv

2012-12-18 Thread Jonathan Cameron
On 12/18/2012 03:33 AM, Axel Lin wrote: regulator_get_voltage() may return negative error code. Add error checking to avoid setting error code to voltage_uv. Signed-off-by: Axel Lin axel@ingics.com added to fixes-togreg branch of iio.git --- Sorry. Just found I made the same mistake

[PATCH v2] iio: dac: ad5446: Don't set error code to voltage_uv

2012-12-17 Thread Axel Lin
regulator_get_voltage() may return negative error code. Add error checking to avoid setting error code to voltage_uv. Signed-off-by: Axel Lin --- Sorry. Just found I made the same mistake again. Here is v2, should check if ret is negative value. drivers/iio/dac/ad5446.c |6 +- 1 file

[PATCH v2] iio: dac: ad5446: Don't set error code to voltage_uv

2012-12-17 Thread Axel Lin
regulator_get_voltage() may return negative error code. Add error checking to avoid setting error code to voltage_uv. Signed-off-by: Axel Lin axel@ingics.com --- Sorry. Just found I made the same mistake again. Here is v2, should check if ret is negative value. drivers/iio/dac/ad5446.c |