![Jonathan Cameron](/assets/img/avatar_default.png)
This driver uses channel maps, defined either through device tree or platform data, to create a hwmon driver which acts as a client for the underlying IIO device channels. Thus a general purpose IIO adc driver can be used to provide hardware monitoring using a subset of its channels. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Acked-by: Guenter Roeck <linux@roeck-us.net> -- The only non move changes here concern the description and changes to the dependencies to IIO explicit and hwmon implicit. I'm proposing moving this into hwmon on the basis of placing drivers based on what they provide rather than what their underlying hardware is. drivers/hwmon/Kconfig | 9 ++ drivers/hwmon/Makefile | 1 + drivers/hwmon/iio_hwmon.c | 196 ++++++++++++++++++++++++++++++++++++++++ drivers/staging/iio/Kconfig | 8 -- drivers/staging/iio/Makefile | 2 - drivers/staging/iio/iio_hwmon.c | 196 ---------------------------------------- 6 files changed, 206 insertions(+), 206 deletions(-)
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
#
|
|
# Industrial I/O subsystem configuration
|
|
#
|
|
menu "IIO staging drivers"
|
|
depends on IIO
|
|
|
|
source "drivers/staging/iio/accel/Kconfig"
|
|
source "drivers/staging/iio/adc/Kconfig"
|
|
source "drivers/staging/iio/addac/Kconfig"
|
|
source "drivers/staging/iio/cdc/Kconfig"
|
|
source "drivers/staging/iio/frequency/Kconfig"
|
|
source "drivers/staging/iio/gyro/Kconfig"
|
|
source "drivers/staging/iio/impedance-analyzer/Kconfig"
|
|
source "drivers/staging/iio/light/Kconfig"
|
|
source "drivers/staging/iio/magnetometer/Kconfig"
|
|
source "drivers/staging/iio/meter/Kconfig"
|
|
source "drivers/staging/iio/resolver/Kconfig"
|
|
source "drivers/staging/iio/trigger/Kconfig"
|
|
|
|
config IIO_DUMMY_EVGEN
|
|
tristate
|
|
|
|
config IIO_SIMPLE_DUMMY
|
|
tristate "An example driver with no hardware requirements"
|
|
help
|
|
Driver intended mainly as documentation for how to write
|
|
a driver. May also be useful for testing userspace code
|
|
without hardware.
|
|
|
|
if IIO_SIMPLE_DUMMY
|
|
|
|
config IIO_SIMPLE_DUMMY_EVENTS
|
|
boolean "Event generation support"
|
|
select IIO_DUMMY_EVGEN
|
|
help
|
|
Add some dummy events to the simple dummy driver.
|
|
|
|
config IIO_SIMPLE_DUMMY_BUFFER
|
|
boolean "Buffered capture support"
|
|
depends on IIO_KFIFO_BUF
|
|
help
|
|
Add buffered data capture to the simple dummy driver.
|
|
|
|
endif # IIO_SIMPLE_DUMMY
|
|
|
|
endmenu
|