]> 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)
commitb47ee7c91f4bf43bcdf390155067f24b2023a898
treeaa022b085fb0a5de3c5cdf87eae9eaeb3bed8937
parent41eefde4530a06b5fdbe491fa7f81a7ba133a33f
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