thermal: core: Store trip sysfs attributes in thermal_trip_desc

Instead of allocating memory for trip point sysfs attributes separately,
store them in struct thermal_trip_desc for each trip individually which
allows a few extra memory allocations to be avoided.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/46571375.fMDQidcC6G@rjwysocki.net
This commit is contained in:
Rafael J. Wysocki 2024-07-29 18:25:03 +02:00
commit 66b263306a
2 changed files with 46 additions and 82 deletions