summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@oss.qualcomm.com>2026-05-08 21:05:10 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-05-13 22:03:22 +0300
commit34f54003643e907e2e5d0433e81a6fbfc419fd88 (patch)
tree839f5f24dbfc67335b69e477344311029017ca53 /include/linux
parentdc04e81fa2188d96af0c795ff45e4e5a209183b2 (diff)
downloadlinux-34f54003643e907e2e5d0433e81a6fbfc419fd88.tar.xz
thermal/core: Allocate the thermal class dynamically
Use class_create() instead of a statically allocated struct class. This allows the thermal class to be managed through a dynamically allocated class object and avoids keeping a static class instance around. Signed-off-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> [ rjw: Added __ro_after_init to thermal_class ] [ rjw: Used temporary local var to store class_create() return value ] Link: https://patch.msgid.link/20260508180511.1306659-4-daniel.lezcano@oss.qualcomm.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions