Clang warns:
../drivers/thermal/msm-tsens.c:998:41: warning: implicit conversion from
enumeration type 'enum thermal_trip_activation_mode' to different
enumeration type 'enum thermal_device_mode' [-Wenum-conversion]
debug_thr_state_copy.crit_th_state = mode;
~ ^~~~
../drivers/thermal/msm-tsens.c:1012:41: warning: implicit conversion
from enumeration type 'enum thermal_trip_activation_mode' to different
enumeration type 'enum thermal_device_mode' [-Wenum-conversion]
debug_thr_state_copy.high_th_state = mode;
~ ^~~~
../drivers/thermal/msm-tsens.c:1028:40: warning: implicit conversion
from enumeration type 'enum thermal_trip_activation_mode' to different
enumeration type 'enum thermal_device_mode' [-Wenum-conversion]
debug_thr_state_copy.low_th_state = mode;
~ ^~~~
../drivers/thermal/msm-tsens.c:1074:42: warning: implicit conversion
from enumeration type 'enum thermal_trip_activation_mode' to different
enumeration type 'enum thermal_device_mode' [-Wenum-conversion]
debug_thr_state_copy.high_th_state = mode;
~ ^~~~
../drivers/thermal/msm-tsens.c:1085:41: warning: implicit conversion
from enumeration type 'enum thermal_trip_activation_mode' to different
enumeration type 'enum thermal_device_mode' [-Wenum-conversion]
debug_thr_state_copy.low_th_state = mode;
~ ^~~~
5 warnings generated.
Fixes:
2021d15137a3 ("thermal: tsens: Enable TSENS")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>