Skip to content

Commit bd32eac

Browse files
committed
thermal: core: Rename trip list node in struct thermal_trip_desc
Since the list node field in struct thermal_trip_desc is going to be used for purposes other than trip crossing notification, rename it to list_node. No functional impact. Signed-off-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Lukasz Luba <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent c12629f commit bd32eac

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

drivers/thermal/thermal_core.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,13 +414,13 @@ static void add_trip_to_sorted_list(struct thermal_trip_desc *td,
414414
struct thermal_trip_desc *entry;
415415

416416
/* Assume that the new entry is likely to be the last one. */
417-
list_for_each_entry_reverse(entry, list, notify_list_node) {
417+
list_for_each_entry_reverse(entry, list, list_node) {
418418
if (entry->notify_temp <= td->notify_temp) {
419-
list_add(&td->notify_list_node, &entry->notify_list_node);
419+
list_add(&td->list_node, &entry->list_node);
420420
return;
421421
}
422422
}
423-
list_add(&td->notify_list_node, list);
423+
list_add(&td->list_node, list);
424424
}
425425

426426
static void handle_thermal_trip(struct thermal_zone_device *tz,
@@ -586,10 +586,10 @@ void __thermal_zone_device_update(struct thermal_zone_device *tz,
586586

587587
thermal_zone_set_trips(tz, low, high);
588588

589-
list_for_each_entry(td, &way_up_list, notify_list_node)
589+
list_for_each_entry(td, &way_up_list, list_node)
590590
thermal_trip_crossed(tz, &td->trip, governor, true);
591591

592-
list_for_each_entry_reverse(td, &way_down_list, notify_list_node)
592+
list_for_each_entry_reverse(td, &way_down_list, list_node)
593593
thermal_trip_crossed(tz, &td->trip, governor, false);
594594

595595
if (governor->manage)

drivers/thermal/thermal_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct thermal_trip_attrs {
3131
struct thermal_trip_desc {
3232
struct thermal_trip trip;
3333
struct thermal_trip_attrs trip_attrs;
34-
struct list_head notify_list_node;
34+
struct list_head list_node;
3535
struct list_head thermal_instances;
3636
int notify_temp;
3737
int threshold;

0 commit comments

Comments
 (0)