diff options
author | Sean Anderson <sean.anderson@linux.dev> | 2024-06-24 13:46:01 -0400 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-06-28 20:07:18 +0100 |
commit | 440db4075fa0cb517bb18ea7ec555d927f8fc030 (patch) | |
tree | fd9f910882ebac9fee4a9352f35b08d3abd9afcc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0214b27fc949a7bcaf57e71a7f9f534d6481d08b (diff) |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions