diff options
author | Kim, Milo <Milo.Kim@ti.com> | 2012-08-31 13:24:28 +0400 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-09-21 05:00:55 +0400 |
commit | b1ad079680b24386d12aa99dd9afd4eb7093bbee (patch) | |
tree | 4e5abc11573948c8d7fdd7f4ad3a2e42bcda63ed /arch/m68k/configs/m5407c3_defconfig | |
parent | 638555d2769b7dfb8654bae513cff295ea9a3837 (diff) | |
download | linux-b1ad079680b24386d12aa99dd9afd4eb7093bbee.tar.xz |
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>
Diffstat (limited to 'arch/m68k/configs/m5407c3_defconfig')
0 files changed, 0 insertions, 0 deletions