]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: adc: axp288: Override TS pin bias current for some models
authorHans de Goede <hdegoede@redhat.com>
Sun, 15 Sep 2019 18:53:42 +0000 (20:53 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 9 Oct 2019 18:11:27 +0000 (19:11 +0100)
commit972917419a0ba25afbf69d5d8c9fa644d676f887
tree76ae70de7944f1d479d177c9792b6cfc0f4a972f
parent9c0530e898f384c5d279bfcebd8bb17af1105873
iio: adc: axp288: Override TS pin bias current for some models

Since commit 9bcf15f75cac ("iio: adc: axp288: Fix TS-pin handling") we
preserve the bias current set by the firmware at boot.  This fixes issues
we were seeing on various models, but it seems our old hardcoded 80ųA bias
current was working around a firmware bug on at least one model laptop.

In order to both have our cake and eat it, this commit adds a dmi based
list of models where we need to override the firmware set bias current and
adds the one model we now know needs this to it: The Lenovo Ideapad 100S
(11 inch version).

Fixes: 9bcf15f75cac ("iio: adc: axp288: Fix TS-pin handling")
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=203829
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/axp288_adc.c