commit | 6ed3546df8c461fad6f7869e5a161ce10be65c30 | [log] [tgz] |
---|---|---|
author | Harry Yang <harryy@codeaurora.org> | Thu Nov 16 23:01:39 2017 -0800 |
committer | Harry Yang <harryy@codeaurora.org> | Wed Nov 22 10:36:23 2017 -0800 |
tree | 1d3723b834a8050015a505a847cde6941521e972 | |
parent | ade6ec4df0edb0bc884c9a8a3ea2c0439eaa1ffd [diff] |
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>