aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/thermal.h
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2020-07-06 12:55:36 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-07-07 15:55:21 +0200
commit329b064fbd13d6526fdc35d4a220adedeadf0816 (patch)
treec44eb04f650149b9be2cc91c31f06e749990c0c0 /include/linux/thermal.h
parentthermal: core: Add helpers to browse the cdev, tz and governor list (diff)
downloadlinux-dev-329b064fbd13d6526fdc35d4a220adedeadf0816.tar.xz
linux-dev-329b064fbd13d6526fdc35d4a220adedeadf0816.zip
thermal: core: Get thermal zone by id
The next patch will introduce the generic netlink protocol to handle events, sampling and command from the thermal framework. In order to deal with the thermal zone, it uses its unique identifier to characterize it in the message. Passing an integer is more efficient than passing an entire string. This change provides a function returning back a thermal zone pointer corresponding to the identifier passed as parameter. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org> Acked-by: Zhang Rui <rui.zhang@intel.com> Link: https://lore.kernel.org/r/20200706105538.2159-2-daniel.lezcano@linaro.org
Diffstat (limited to 'include/linux/thermal.h')
0 files changed, 0 insertions, 0 deletions