summaryrefslogtreecommitdiffstats
path: root/drivers/hid/Kconfig
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2022-10-01 02:52:08 +0200
committerJiri Kosina <jkosina@suse.cz>2022-10-18 15:00:01 +0200
commit960f9df7c620ecb6030aff1d9a6c3d67598b8290 (patch)
treea226ce1b12688733efa1d9f22330c891c93e3e10 /drivers/hid/Kconfig
parentHID: mcp2221: change 'select GPIOLIB' to imply (diff)
downloadlinux-960f9df7c620ecb6030aff1d9a6c3d67598b8290.tar.xz
linux-960f9df7c620ecb6030aff1d9a6c3d67598b8290.zip
HID: mcp2221: add ADC/DAC support via iio subsystem
Add support for 3x 10-bit ADC and 1x DAC channels registered via the iio subsystem. To prevent breakage and unexpected dependencies this support only is only built if CONFIG_IIO is enabled, and is only weakly referenced by 'imply IIO' within the respective Kconfig. Additionally the iio device only gets registered if at least one channel is enabled in the power-on configuration read from SRAM. Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/Kconfig')
-rw-r--r--drivers/hid/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index 745fc38794ad..17cce4c50e8d 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -1253,6 +1253,7 @@ config HID_MCP2221
tristate "Microchip MCP2221 HID USB-to-I2C/SMbus host support"
depends on USB_HID && I2C
imply GPIOLIB
+ imply IIO
help
Provides I2C and SMBUS host adapter functionality over USB-HID
through MCP2221 device.