power: smblib: fix die temp state reporting

Currently, TEMP_RANGE bits in TEMP_RANGE_STATUS_REG are assumed
mutually exclusive and unknown state is reported when more than
one bits are set.

Fix it by checking each individual bit in order.

CRs-Fixed: 2143543
Change-Id: I2cbec08cad22ce4f9575e703144f04a3be4eced0
Signed-off-by: Harry Yang <harryy@codeaurora.org>
1 file changed