From: Eduardo Valentin Date: Tue, 16 Jul 2013 18:57:51 +0000 (-0400) Subject: hwmon: tmp102: expose to thermal fw via DT nodes X-Git-Tag: v3.14-rc1~106^2~2^3^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a027523f30f1cc90037686e6a682d15c6a555d6;p=pandora-kernel.git hwmon: tmp102: expose to thermal fw via DT nodes This patch adds to tmp102 temperature sensor the possibility to expose itself as thermal zone device, registered on the thermal framework. The thermal zone is built only if a device tree node describing a thermal zone for this sensor is present inside the tmp102 DT node. Otherwise, the driver behavior will be the same. Note: This patch has also been reviewed by Jean D. He has requested to perform a wider inspection of possible users of thermal and hwmon interaction API. On the other hand, the change on this patch is acceptable on first step of overall code change. Cc: Jean Delvare Cc: lm-sensors@lm-sensors.org Cc: linux-kernel@vger.kernel.org Acked-by: Guenter Roeck Signed-off-by: Eduardo Valentin --- Reading git-diff-tree failed