Commit 703f1328 authored by Anjelique Melendez's avatar Anjelique Melendez Committed by Daniel Lezcano
Browse files

thermal/drivers/qcom-spmi-temp-alarm: Add temp alarm data struct based on HW subtype



Currently multiple if/else statements are used in functions to decipher
between SPMI temp alarm Gen 1, Gen 2 and Gen 2 Rev 1 functionality. Instead
refactor the driver so that SPMI temp alarm chips will have reference to a
spmi_temp_alarm_data struct which defines data and function callbacks
based on the HW subtype.

Signed-off-by: default avatarAnjelique Melendez <anjelique.melendez@oss.qualcomm.com>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20250710224555.3047790-3-anjelique.melendez@oss.qualcomm.com


Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent f8e157ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment