]> 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)
commit0de51f464c28a58773088607b1c1721d0249b74e
tree6d6fd26df55390d612c7a2697d31576b3c0811a2
parenteb7a23e6ac1200080fb0ba20ecf57b71655b94dc
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