From: Cédric Le Goater Date: Wed, 8 Apr 2015 17:19:48 +0000 (+0200) Subject: hwmon: (ibmpowernv) add support for the new device tree X-Git-Tag: omap-for-v4.2/o2_dc~170^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14681637ab3013d3577cc59633159f425733532e;p=pandora-kernel.git 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 Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed