mfd: Fixed unconditional reset of the mc13xxx ADC reading enable bits
authorRobin van der Gracht <robin@protonic.nl>
Tue, 29 Nov 2011 11:09:03 +0000 (12:09 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 8 Jan 2012 23:37:33 +0000 (00:37 +0100)
commit2161891a0a7bcad6ee8819bb324ee4a031bc8a95
tree99fdd22dd2e0c8e1f24a573ca80ea5766aaf1839
parent99f09bebbe4e9e008a4e0555340494840c6bd644
mfd: Fixed unconditional reset of the mc13xxx ADC reading enable bits

When the ADC is being prepared for a single or multiple channel reading,
the adc0 register is reconfigured without taking the lithium cell, charge
current and battery current reading enable bits into account. Which results
in clearing the bits.

Signed-off-by: Robin van der Gracht <robin@protonic.nl>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/mc13xxx-core.c
include/linux/mfd/mc13xxx.h