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)
commita77fc11156893bd0332a1fb6e314e6268abf720b
treef75adf8ef80e8dd00da013a9514cfc6b4defc682
parent07063bbfa98e60916bf4805e490736d96d137e9d
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]