From: Eduardo Valentin Date: Thu, 12 Sep 2013 23:15:44 +0000 (-0400) Subject: thermal: allow registering without .get_temp X-Git-Tag: v3.14-rc1~106^2~2^3^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81bd4e1cebed5efb85bd94a15342ee4d6965a416;p=pandora-kernel.git thermal: allow registering without .get_temp This patch changes the thermal core driver to allow registration of thermal zones without the .get_temp callback. The idea behind this change is to allow lazy registration of sensor callbacks. The thermal zone will be disabled whenever the ops does not contain a .get_temp callback. The sysfs interface will be returning -EINVAL on any temperature read operation. Cc: Zhang Rui Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- Reading git-diff-tree failed