iio: adc: Revert "axp288: Drop bogus AXP288_ADC_TS_PIN_CTRL register modifications"
authorHans de Goede <hdegoede@redhat.com>
Fri, 30 Jun 2017 17:42:54 +0000 (19:42 +0200)
committerJonathan Cameron <jic23@kernel.org>
Tue, 4 Jul 2017 19:31:50 +0000 (20:31 +0100)
commit631b010abc5b57009c6a8328f51492665f6ef310
tree983ad0cca7438be2d469827702c6c65574d154fe
parentbe2ea53330f1865ac5b00377f2074f8e255bf74c
iio: adc: Revert "axp288: Drop bogus AXP288_ADC_TS_PIN_CTRL register modifications"

Inheriting the ADC BIAS current settings from the BIOS instead of
hardcoding then causes the AXP288 to disable charging (I think it
mis-detects an overheated battery) on at least one model tablet.

So lets go back to hard coding the values, this reverts
commit fa2849e9649b ("iio: adc: axp288: Drop bogus
AXP288_ADC_TS_PIN_CTRL register modifications"), fixing charging not
working on the model tablet in question.

The exact cause is not fully understood, hence the revert to a known working
state.

Cc: stable@vger.kernel.org
Reported-by: Umberto Ixxo <sfumato1977@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/axp288_adc.c