All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] hwmon: Add "label" attribute
@ 2021-12-21 17:50 Paul Cercueil
  2021-12-21 17:50 ` [PATCH 1/2] dt-bindings: hwmon: Introduce common properties Paul Cercueil
  2021-12-21 17:50 ` [PATCH 2/2] hwmon: Add "label" attribute Paul Cercueil
  0 siblings, 2 replies; 9+ messages in thread
From: Paul Cercueil @ 2021-12-21 17:50 UTC (permalink / raw)
  To: Jean Delvare, Guenter Roeck, Rob Herring
  Cc: linux-hwmon, devicetree, linux-kernel, Paul Cercueil

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-01-05  9:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-21 17:50 [PATCH 0/2] hwmon: Add "label" attribute Paul Cercueil
2021-12-21 17:50 ` [PATCH 1/2] dt-bindings: hwmon: Introduce common properties Paul Cercueil
2021-12-22 19:36   ` Rob Herring
2021-12-23  9:19     ` Paul Cercueil
2021-12-23 10:12       ` Paul Cercueil
2022-01-05  9:41     ` Paul Cercueil
2021-12-21 17:50 ` [PATCH 2/2] hwmon: Add "label" attribute Paul Cercueil
2021-12-21 18:17   ` Guenter Roeck
2021-12-22 14:18     ` Paul Cercueil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.