]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: thermal: tsens: Add new operation to check if a sensor is enabled
authorAmit Kucheria <amit.kucheria@linaro.org>
Wed, 20 Mar 2019 13:17:53 +0000 (18:47 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 14 May 2019 13:59:17 +0000 (06:59 -0700)
commit0168a6e179a93764a4633d07ead5a0e131eb3128
treeaa022b085fb0a5de3c5cdf87eae9eaeb3bed8937
parentdb2b58b04e691c4db542244132b77b5347afbb52
drivers: thermal: tsens: Add new operation to check if a sensor is enabled

is_sensor_enabled() checks if the sensors are enabled on this platform.
It is possible that the SoC might choose not to enable all the sensors
that the IP block is capable of supporting.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/qcom/tsens-common.c
drivers/thermal/qcom/tsens-v0_1.c
drivers/thermal/qcom/tsens-v2.c
drivers/thermal/qcom/tsens.c
drivers/thermal/qcom/tsens.h