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

2019-09-20 Thread Stephen Boyd
Quoting Amit Kucheria (2019-09-20 14:52:29) > 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 > --- Reviewed-by: Stephen Boyd Just one nit below. > drivers/ther

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

2019-09-20 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 + 1 file changed, 36 insertions(+), 14 deletions