All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] hwmon: (ucd9000) Add gpio and debugfs interfaces
@ 2018-03-15 22:21 Eddie James
  2018-03-15 22:21 ` [PATCH v5 1/2] hwmon: (ucd9000) Add gpio chip interface Eddie James
  2018-03-15 22:21 ` [PATCH v5 2/2] hwmon: (ucd9000) Add debugfs attributes to provide mfr_status Eddie James
  0 siblings, 2 replies; 7+ messages in thread
From: Eddie James @ 2018-03-15 22:21 UTC (permalink / raw)
  To: linux-hwmon
  Cc: linux-kernel, jdelvare, linux, joel, andy.shevchenko, Eddie James

The ucd9000 series chips have gpio pins. Add a gpio chip interface to the ucd
device so that users can query and set the state of the gpio pins.

Add a debugfs interface using the existing pmbus debugfs directory to provide
MFR_STATUS and the status of the gpi faults to users.

Changes since v4:
 - max-sized buffers for smbus transfers
 - used bin2hex instead of my own code

Changes since v3:
 - remove setting of gpio_chip->owner
 - format the mfr_status data
 - switch to #ifdef rather than #if IS_ENABLED for debugfs

Changes since v2:
 - split the gpio registration into it's own function

Changes since v1:
 - dropped dev_err messages
 - made gpio chip registration conditional on having gpio pins
 - made mfr_status debugfs attribute more simple

Christopher Bostic (2):
  hwmon: (ucd9000) Add gpio chip interface
  hwmon: (ucd9000) Add debugfs attributes to provide mfr_status

 drivers/hwmon/pmbus/ucd9000.c | 338 +++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 337 insertions(+), 1 deletion(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-03-16 18:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-15 22:21 [PATCH v5 0/2] hwmon: (ucd9000) Add gpio and debugfs interfaces Eddie James
2018-03-15 22:21 ` [PATCH v5 1/2] hwmon: (ucd9000) Add gpio chip interface Eddie James
2018-03-16 13:40   ` Guenter Roeck
2018-03-16 18:39     ` Eddie James
2018-03-16 18:54       ` Guenter Roeck
2018-03-15 22:21 ` [PATCH v5 2/2] hwmon: (ucd9000) Add debugfs attributes to provide mfr_status Eddie James
2018-03-16 13:46   ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.