Loading
drivers: thermal: lmh-dcvsh: Validate the input threshold
It is possible that the set_trips callback can send INT_MAX for the high
threshold. In those cases, LMH DCVSh driver has to ignore those thresholds,
because the high value means that there is no active high threshold.
Update the DCVSh driver to validate the threshold input before
programming it in the hardware. The driver will error out for any high
threshold input greater than 120C.
Change-Id: Ice282e4e84b4247f68445226627ad6d14311f94d
Signed-off-by:
Ram Chandrasekar <rkumbako@codeaurora.org>