OSDN Git Service

hwmon: (pmbus/adm1266) Add support for GPIOs
authorAlexandru Tachici <alexandru.tachici@analog.com>
Wed, 12 Aug 2020 14:20:52 +0000 (17:20 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 23 Sep 2020 16:42:41 +0000 (09:42 -0700)
commitd98dfad35c38c037b37c4adc99df01da571031a5
treeee27d1f875e0dbf27448772a1e097c5c0e912ab1
parent407dc802a9c0809ca6a48de4b4c63305eb84ef56
hwmon: (pmbus/adm1266) Add support for GPIOs

Adm1266 exposes 9 GPIOs and 16 PDIOs which are currently read-only. They
are controlled by the internal sequencing engine.

This patch makes adm1266 driver expose GPIOs and PDIOs to user-space
using GPIO provider kernel api.

Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
Link: https://lore.kernel.org/r/20200812142055.9213-4-alexandru.tachici@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/Kconfig
drivers/hwmon/pmbus/adm1266.c