]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Switch the AB8500 GPADC to IIO
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Oct 2019 07:18:05 +0000 (09:18 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 18 Oct 2019 18:37:45 +0000 (19:37 +0100)
commitbcd9897c27f6f1dba30b8de5d93544ff0b4fac3f
treef75adf8ef80e8dd00da013a9514cfc6b4defc682
parent30d95fb89533e3588296a6c14360e5642e82006d
mfd: Switch the AB8500 GPADC to IIO

The AB8500 GPADC driver is indeed a "general purpose ADC" driver,
and while the IIO subsystem did not exist when the driver was
first merged, it is never too late to clean things up and move it
to the right place.

Nowadays IIO provides the right abstractions and interfaces to
do generic ADC work in the kernel.

We have to cut a bunch of debugfs luggage to make this transition
swift, but all these files to is read out the raw values of the
ADC and the IIO subsystem already has a standard sysfs ABI for
doing exactly this: no debugfs is needed.

Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/ab8500-debugfs.c
drivers/mfd/ab8500-gpadc.c [deleted file]
include/linux/mfd/abx500/ab8500-gpadc.h [deleted file]