diff options
author | Daniel Lezcano <[email protected]> | 2020-07-06 12:55:36 +0200 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2020-07-07 15:55:21 +0200 |
commit | 329b064fbd13d6526fdc35d4a220adedeadf0816 (patch) | |
tree | c44eb04f650149b9be2cc91c31f06e749990c0c0 /lib/memory-notifier-error-inject.c | |
parent | 3d44a509c1dafb75adfe218f022ad216885c135e (diff) |
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 <[email protected]>
Reviewed-by: Amit Kucheria <[email protected]>
Acked-by: Zhang Rui <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions