thermal: Add mode helpers
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Mon, 29 Jun 2020 12:29:20 +0000 (14:29 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 29 Jun 2020 18:26:36 +0000 (20:26 +0200)
commitac5d9ecc74d8beee8c87f1441e4adaf4e9fe90c5
tree6bf1c0736ad4b083d97520cfec22970f2b30d037
parent1ee14820fd8ee79c4fc191155f48c985f28040e2
thermal: Add mode helpers

Prepare for making the drivers not access tzd's private members.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
[staticize thermal_zone_device_set_mode()]
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200629122925.21729-7-andrzej.p@collabora.com
drivers/thermal/thermal_core.c
include/linux/thermal.h