Files
linux/drivers/hwmon
Sean Anderson 440db4075f hwmon: iio: Add labels from IIO channels
Add labels from IIO channels to our channels. This allows userspace to
display more meaningful names instead of "in0" or "temp5".

Although lm-sensors gracefully handles errors when reading channel
labels, the ABI says the label attribute

> Should only be created if the driver has hints about what this voltage
> channel is being used for, and user-space doesn't.

Therefore, we test to see if the channel has a label before
creating the attribute.

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://patch.msgid.link/20240624174601.1527244-3-sean.anderson@linux.dev
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2024-06-28 20:07:18 +01:00
..
2023-12-11 06:21:01 -08:00
2024-03-07 09:17:40 -08:00
2024-05-03 09:20:04 -07:00
2024-01-08 07:26:34 -08:00
2019-11-06 14:37:19 -08:00
2024-02-25 12:37:10 -08:00
2024-05-03 09:20:04 -07:00