Re: [PATCH v4 2/2] iio: temperature: add driver support for ti tmp117

2021-04-18 Thread Jonathan Cameron
On Sun, 11 Apr 2021 21:08:29 +0300 Andy Shevchenko wrote: > On Sun, Apr 11, 2021 at 9:07 PM Andy Shevchenko > wrote: > > On Sun, Apr 11, 2021 at 5:53 PM Jonathan Cameron wrote: > > > On Wed, 7 Apr 2021 23:51:47 +0530 > > > Puranjay Mohan wrote: > > > Good point, but better is to use clam

Re: [PATCH v4 2/2] iio: temperature: add driver support for ti tmp117

2021-04-11 Thread Andy Shevchenko
On Sun, Apr 11, 2021 at 9:07 PM Andy Shevchenko wrote: > On Sun, Apr 11, 2021 at 5:53 PM Jonathan Cameron wrote: > > On Wed, 7 Apr 2021 23:51:47 +0530 > > Puranjay Mohan wrote: > Good point, but better is to use clamp_t(s16, ...) rather than explicit > casting. Sorry, I meant clamp_t(int, ..

Re: [PATCH v4 2/2] iio: temperature: add driver support for ti tmp117

2021-04-11 Thread Andy Shevchenko
On Sun, Apr 11, 2021 at 5:53 PM Jonathan Cameron wrote: > > On Wed, 7 Apr 2021 23:51:47 +0530 > Puranjay Mohan wrote: > > > TMP117 is a Digital temperature sensor with integrated Non-Volatile memory. > > Add support for tmp117 driver in iio subsystem. ... > > + off = clamp(val, S16

Re: [PATCH v4 2/2] iio: temperature: add driver support for ti tmp117

2021-04-11 Thread Jonathan Cameron
On Wed, 7 Apr 2021 23:51:47 +0530 Puranjay Mohan wrote: > TMP117 is a Digital temperature sensor with integrated Non-Volatile memory. > Add support for tmp117 driver in iio subsystem. > > Datasheet: https://www.ti.com/lit/gpn/tmp117 > Signed-off-by: Puranjay Mohan > Reviewed-by: Andy Shevchenk

Re: [PATCH v4 2/2] iio: temperature: add driver support for ti tmp117

2021-04-08 Thread Lars-Peter Clausen
On 4/7/21 8:21 PM, Puranjay Mohan wrote: TMP117 is a Digital temperature sensor with integrated Non-Volatile memory. Add support for tmp117 driver in iio subsystem. Datasheet: https://www.ti.com/lit/gpn/tmp117 Signed-off-by: Puranjay Mohan Reviewed-by: Andy Shevchenko Looks good to me, thank

[PATCH v4 2/2] iio: temperature: add driver support for ti tmp117

2021-04-07 Thread Puranjay Mohan
TMP117 is a Digital temperature sensor with integrated Non-Volatile memory. Add support for tmp117 driver in iio subsystem. Datasheet: https://www.ti.com/lit/gpn/tmp117 Signed-off-by: Puranjay Mohan Reviewed-by: Andy Shevchenko --- MAINTAINERS | 7 ++ drivers/iio/temperat