Re: [PATCH 3/4] staging: iio: ad7150: simplify i2c SMBus return treatment

2019-05-05 Thread Jonathan Cameron
On Sat, 4 May 2019 13:36:43 +0300 Alexandru Ardelean wrote: > On Sat, May 4, 2019 at 1:26 AM Melissa Wen wrote: > > > > Since i2c_smbus_write_byte_data returns no-positive value, this commit > > making the treatment of its return value less verbose. > > > > Signed-off-by: Melissa Wen > > --- >

Re: [PATCH 3/4] staging: iio: ad7150: simplify i2c SMBus return treatment

2019-05-04 Thread Alexandru Ardelean
On Sat, May 4, 2019 at 1:26 AM Melissa Wen wrote: > > Since i2c_smbus_write_byte_data returns no-positive value, this commit > making the treatment of its return value less verbose. > > Signed-off-by: Melissa Wen > --- > drivers/staging/iio/cdc/ad7150.c | 10 +++--- > 1 file changed, 3

[PATCH 3/4] staging: iio: ad7150: simplify i2c SMBus return treatment

2019-05-03 Thread Melissa Wen
Since i2c_smbus_write_byte_data returns no-positive value, this commit making the treatment of its return value less verbose. Signed-off-by: Melissa Wen --- drivers/staging/iio/cdc/ad7150.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git