From: Eduardo Valentin Date: Fri, 5 Apr 2013 12:32:28 +0000 (+0000) Subject: thermal: introduce thermal_zone_get_zone_by_name helper function X-Git-Tag: v3.10-rc1~42^2~8^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63c4d919cf66b1b3ffa7861bddb50a697914af5b;p=pandora-kernel.git thermal: introduce thermal_zone_get_zone_by_name helper function This patch adds a helper function to get a reference of a thermal zone, based on the zone type name. It will perform a zone name lookup and return a reference to a thermal zone device that matches the name requested. In case the zone is not found or when several zones match same name or if the required parameters are invalid, it will return the corresponding error code (ERR_PTR). Cc: Durgadoss R Signed-off-by: Eduardo Valentin Acked-by: Durgadoss R Signed-off-by: Zhang Rui --- Reading git-diff-tree failed