Re: [PATCH v2 14/15] drivers: thermal: tsens: Create function to return sign-extended temperature

2019-08-28 Thread Stephen Boyd
Quoting Amit Kucheria (2019-08-28 03:35:28) > (Resending, replied only to Stephen by mistake) > > On Wed, Aug 28, 2019 at 6:08 AM Stephen Boyd wrote: > > > > Quoting Amit Kucheria (2019-08-27 05:14:10) > > > @@ -310,6 +328,10 @@ int __init init_common(struct tsens_priv *priv) > > >              

Re: [PATCH v2 14/15] drivers: thermal: tsens: Create function to return sign-extended temperature

2019-08-27 Thread Stephen Boyd
Quoting Amit Kucheria (2019-08-27 05:14:10) > diff --git a/drivers/thermal/qcom/tsens-common.c > b/drivers/thermal/qcom/tsens-common.c > index ea2c46cc6a66a..06b44cfd5eab9 100644 > --- a/drivers/thermal/qcom/tsens-common.c > +++ b/drivers/thermal/qcom/tsens-common.c > @@ -84,13 +84,43 @@ static

[PATCH v2 14/15] drivers: thermal: tsens: Create function to return sign-extended temperature

2019-08-27 Thread Amit Kucheria
Hide the details of how to convert values read from TSENS HW to mCelsius behind a function. All versions of the IP can be supported as a result. Signed-off-by: Amit Kucheria --- drivers/thermal/qcom/tsens-common.c | 50 + drivers/thermal/qcom/tsens.h| 2 ++