]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ibmpowernv) add support for the new device tree
authorCédric Le Goater <clg@fr.ibm.com>
Wed, 8 Apr 2015 17:19:48 +0000 (19:19 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 8 Apr 2015 17:34:20 +0000 (10:34 -0700)
commit7d4dec18ae6fd4499b17f05887dd61c695b20c75
tree6d6fd26df55390d612c7a2697d31576b3c0811a2
parente903a60089982858c7539926c3ee2e5245de8b36
hwmon: (ibmpowernv) add support for the new device tree

The new OPAL device tree for sensors has a different layout and uses new
property names, for the type and for the handler used to capture the
sensor data.

This patch modifies the ibmpowernv driver to support such a tree in a
way preserving compatibility with older OPAL firmwares.

This is achieved by changing the error path of the routine parsing
an OPAL node name. The node is simply considered being from the new
device tree layout and fallback values are used.

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