summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2017-05-23 03:51:44 +0300
committerJonathan Cameron <jic23@kernel.org>2017-06-03 10:43:15 +0300
commit3f9f3a1a1451f4f389423dae4b5404b1abd48025 (patch)
treec5113dcf248346c03ef2c6b0966617cf51f56a32 /include/linux/timerqueue.h
parent57d14635f976404fac165047389ff0dbe83bcd5b (diff)
downloadlinux-3f9f3a1a1451f4f389423dae4b5404b1abd48025.tar.xz
iio: adc: cpcap: Fix default register values and battery temperature
Looking at the register dumps from Android kernel on droid 4, I noticed the values with the mainline kernel don't match. Let's fix this by initializing the ADC registers to what Android does. For getting correct values from the battery thermistor, we need to toggle the CPCAP_BIT_THERMBIAS_EN when measuring battery temperature to get correct battery temperatures. And looks like we also need to wait a little bit before reading the battery temperature as otherwise the results are inaccurate. Cc: Marcel Partap <mpartap@gmx.net> Cc: Michael Scott <michael.scott@linaro.org> Cc: Sebastian Reichel <sre@kernel.org> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions