diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-07-06 12:55:36 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-07-07 15:55:21 +0200 |
commit | 329b064fbd13d6526fdc35d4a220adedeadf0816 (patch) | |
tree | c44eb04f650149b9be2cc91c31f06e749990c0c0 /drivers/thermal/thermal_sysfs.c | |
parent | 3d44a509c1dafb75adfe218f022ad216885c135e (diff) | |
download | lwn-329b064fbd13d6526fdc35d4a220adedeadf0816.tar.gz lwn-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 'drivers/thermal/thermal_sysfs.c')
0 files changed, 0 insertions, 0 deletions