]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ibmpowernv) add a label attribute
authorCédric Le Goater <clg@fr.ibm.com>
Wed, 8 Apr 2015 17:19:49 +0000 (19:19 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 8 Apr 2015 17:34:20 +0000 (10:34 -0700)
commitcad708cf386cc8043da7c4a9e0a4a9eee2fc7908
treeec81d8281653d5e7822644a887f7de3452aed237
parent7d4dec18ae6fd4499b17f05887dd61c695b20c75
hwmon: (ibmpowernv) add a label attribute

Currently, sensors are only identified by their type and index.

The new OPAL device tree can expose extra properties to identify
some sensors by their name or location. This patch adds the creation
of a new hwmon *_label attribute when such properties are detected.

Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ibmpowernv.c