]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: trip: Add conversion macros for thermal trip priv field
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 2 Jul 2024 14:41:03 +0000 (16:41 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 9 Jul 2024 16:22:59 +0000 (18:22 +0200)
commitd1fbf18a0f9403df2edeffa1c7f5a2d66e82c20a
treec2f5eba88c11128df42f56c62070b4bccbcdac46
parent463b86fed2b25ddb5f576376bfea00134dd23030
thermal: trip: Add conversion macros for thermal trip priv field

Some drivers will need to store integers in the priv field of struct
thermal_trip, so add conversion macros for doing this in a consistent
way and switch over the int340x_thermal driver that already does it and
uses custom conversion functions to using the new macros.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/3297884.aeNJFYEL58@rjwysocki.net
drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c
include/linux/thermal.h