From: Kim, Milo Date: Fri, 31 Aug 2012 09:24:28 +0000 (+0000) Subject: lp8727_charger: Fix code for getting battery temp X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~5^2~19 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1ad079680b24386d12aa99dd9afd4eb7093bbee;p=pandora-kernel.git 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 Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed