]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit2bcd3787b946b725a37763c0877da0996f5ec064
treeec81d8281653d5e7822644a887f7de3452aed237
parent14681637ab3013d3577cc59633159f425733532e
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