mbox series

[v2,0/2] hwmon: iio: Add labels

Message ID 20240624174601.1527244-1-sean.anderson@linux.dev (mailing list archive)
Headers show
Series hwmon: iio: Add labels | expand

Message

Sean Anderson June 24, 2024, 5:45 p.m. UTC
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(-)