diff options
| author | Sean Anderson <[email protected]> | 2024-06-24 13:46:01 -0400 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2024-06-28 20:07:18 +0100 |
| commit | 440db4075fa0cb517bb18ea7ec555d927f8fc030 (patch) | |
| tree | fd9f910882ebac9fee4a9352f35b08d3abd9afcc /tools/perf/scripts | |
| 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 <[email protected]>
Acked-by: Guenter Roeck <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions