]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commit
thermal: introduce thermal_zone_get_zone_by_name helper function
authorEduardo Valentin <eduardo.valentin@ti.com>
Tue, 23 Apr 2013 14:48:10 +0000 (10:48 -0400)
committerJ Keerthy <j-keerthy@ti.com>
Tue, 28 May 2013 05:41:39 +0000 (11:11 +0530)
commit05de7c0d26f50823c615fb38bcaad1dc84bf1bcd
tree1efe69ccf86a6149272b4574be847221ab62cfa8
parent22e89b3017d1875fcdea7ebe0ff59a5257f8571d
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).

Acked-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
drivers/thermal/thermal_sys.c
include/linux/thermal.h