lkml.org 
[lkml]   [2021]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] hwmon: Add "label" attribute
Date
Hi Jean, Guenter, Rob,

This patchset adds support for specifying a hwmon device's label from
Device Tree. When the "label" device property is present, its value is
exported to the userspace via the "label" sysfs attribute.

This is useful for userspace to be able to identify an individual device
when multiple individual chips are present in the system.

Note that this mechanism already exists in IIO.

Patch [1/2] adds the "label" property to a new
dt-bindings/hwmon/common.yaml file.

Patch [2/2] adds the change to the core drivers/hwmon/hwmon.c file.

Cheers,
-Paul

Paul Cercueil (2):
dt-bindings: hwmon: Introduce common properties
hwmon: Add "label" attribute

.../devicetree/bindings/hwmon/common.yaml | 31 +++++++++++++++++++
drivers/hwmon/hwmon.c | 22 ++++++++++++-
2 files changed, 52 insertions(+), 1 deletion(-)
create mode 100644 Documentation/devicetree/bindings/hwmon/common.yaml

--
2.34.1

\
 
 \ /
  Last update: 2021-12-21 18:51    [W:0.062 / U:0.904 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site