OSDN Git Service

hwmon: Add "label" attribute
authorPaul Cercueil <paul@crapouillou.net>
Mon, 10 Jan 2022 18:22:56 +0000 (18:22 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Feb 2022 01:03:16 +0000 (17:03 -0800)
commite1c9d6d61ddf3f34f14d3de51d6eea68683b5841
tree5d12d0a69213b3afc470c76967b5d29e869874c2
parent32b9a19a1966fb3124d7ddd60ebd08688be2f3fa
hwmon: Add "label" attribute

If a label is defined in the device tree for this device add that
to the device specific attributes. This is useful for userspace to
be able to identify an individual device when multiple identical
chips are present in the system.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Tested-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Link: https://lore.kernel.org/r/20220110182256.30763-3-paul@crapouillou.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/hwmon.c