]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit339f1a1fc50cfd0f23d5d3631a5448c8aa5b7306
tree5d12d0a69213b3afc470c76967b5d29e869874c2
parent6a4ff536aa794f3d078735daa7b8c565495e48cc
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