]> git.baikalelectronics.ru Git - kernel.git/commit
thermal/drivers/qcom: Add support for multiple generations of devices
authorJishnu Prakash <quic_jprakash@quicinc.com>
Sun, 3 Apr 2022 13:17:48 +0000 (18:47 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 19 May 2022 10:11:51 +0000 (12:11 +0200)
commit13c96b8c189b9a062c52be22b05ce460ecc8740a
treeade34ff47a40071bcfd93aab4d292bd4c128c679
parent5eeb43be94595cc1be7b40d7b37046582d5c2396
thermal/drivers/qcom: Add support for multiple generations of devices

Refactor code to support multiple generations of ADC_TM devices
by defining gen number, irq name and disable, configure, isr and
init APIs in the individual data structs.

Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/1648991869-20899-4-git-send-email-quic_jprakash@quicinc.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/qcom/qcom-spmi-adc-tm5.c