Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 68b87247 authored by Jishnu Prakash's avatar Jishnu Prakash
Browse files

hwmon: qpnp-adc: Change initialization order of adc_tm struct members



During the adc_tm probe, when channels register with the thermal
framework, as part of registration, thermal driver tries to set
trip thresholds using adc_tm function. If initializations in this
change are not done early enough, qpnp_adc_tm_set_trip_temp fails
chip validation and returns error early.

Initialize some adc_tm structure members earlier to avoid errors
during thermal registration.

Change-Id: Ia1d0231403e6289c9b0e43e638677b50709c5182
Signed-off-by: default avatarJishnu Prakash <jprakash@codeaurora.org>
parent 4c446fd4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment