diff options
| author | Nathan Chancellor <natechancellor@gmail.com> | 2019-09-26 23:39:10 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2020-02-02 01:41:01 +0200 |
| commit | d7a4549deb678d69097f970d1382edbbc94caf10 (patch) | |
| tree | f971e9e6c1fcee799d4fb82cceb5b134156cfac6 /scripts/gdb/linux/modules.py | |
| parent | fd21ca6097db9c4663e4450659f10085ec1e8102 (diff) | |
thermal: tsens: Avoid implicit enum conversions in th_state fields
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>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions
