commit | b1ad079680b24386d12aa99dd9afd4eb7093bbee | [log] [tgz] |
---|---|---|
author | Kim, Milo <Milo.Kim@ti.com> | Fri Aug 31 09:24:28 2012 +0000 |
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | Thu Sep 20 18:00:55 2012 -0700 |
tree | 4e5abc11573948c8d7fdd7f4ad3a2e42bcda63ed | |
parent | 638555d2769b7dfb8654bae513cff295ea9a3837 [diff] |
lp8727_charger: Fix code for getting battery temp For better understanding, use specific function and definitions rather than magic numbers. New enum type for die temperature is matched with hex codes. Specific temperature names are better than 0x1, 0x2 and 0x3. And lp8727_is_high_temperature() function has better readability than comparing raw register values. Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>