public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] hwmon: iio: Add labels
@ 2024-06-24 17:45 Sean Anderson
  2024-06-24 17:46 ` [PATCH v2 1/2] iio: Add iio_read_channel_label to inkern API Sean Anderson
  2024-06-24 17:46 ` [PATCH v2 2/2] hwmon: iio: Add labels from IIO channels Sean Anderson
  0 siblings, 2 replies; 9+ messages in thread
From: Sean Anderson @ 2024-06-24 17:45 UTC (permalink / raw)
  To: Jonathan Cameron, Jean Delvare, Guenter Roeck, linux-iio,
	linux-hwmon
  Cc: linux-kernel, Lars-Peter Clausen, Sean Anderson

Add support for using IIO channel labels for HWMON labels.

Changes in v2:
- Check if the label exists before creating the attribute

Sean Anderson (2):
  iio: Add iio_read_channel_label to inkern API
  hwmon: iio: Add labels from IIO channels

 drivers/hwmon/iio_hwmon.c       | 45 +++++++++++++++++++++++++++++----
 drivers/iio/iio_core.h          |  4 +++
 drivers/iio/industrialio-core.c | 23 ++++++++++-------
 drivers/iio/inkern.c            |  6 +++++
 include/linux/iio/consumer.h    | 10 ++++++++
 5 files changed, 74 insertions(+), 14 deletions(-)

-- 
2.35.1.1320.gc452695387.dirty


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

end of thread, other threads:[~2024-06-28 19:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-24 17:45 [PATCH v2 0/2] hwmon: iio: Add labels Sean Anderson
2024-06-24 17:46 ` [PATCH v2 1/2] iio: Add iio_read_channel_label to inkern API Sean Anderson
2024-06-24 17:46 ` [PATCH v2 2/2] hwmon: iio: Add labels from IIO channels Sean Anderson
2024-06-24 18:47   ` Guenter Roeck
2024-06-24 19:24     ` Jonathan Cameron
2024-06-27 18:37       ` Sean Anderson
2024-06-28 19:08         ` Jonathan Cameron
2024-06-24 19:34     ` Sean Anderson
2024-06-24 20:05       ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox