Skip to content

Commit 06354d7

Browse files
committed
thermal: core: Rename callback functions in two governors
The names of :trip_crossed() callback functions in the Bang-bang and User-space thermal governors don't match their current purpose any more after previous changes, so rename them. No functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> Link: https://patch.msgid.link/5859084.DvuYhMxLoT@rjwysocki.net
1 parent 5bc55a3 commit 06354d7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

drivers/thermal/gov_bang_bang.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static void bang_bang_set_instance_target(struct thermal_instance *instance,
3434
}
3535

3636
/**
37-
* bang_bang_control - controls devices associated with the given zone
37+
* bang_bang_trip_crossed - controls devices associated with the given zone
3838
* @tz: thermal_zone_device
3939
* @trip: the trip point
4040
* @crossed_up: whether or not the trip has been crossed on the way up
@@ -61,9 +61,9 @@ static void bang_bang_set_instance_target(struct thermal_instance *instance,
6161
* (trip_temp - hyst) so that the fan gets turned off again.
6262
*
6363
*/
64-
static void bang_bang_control(struct thermal_zone_device *tz,
65-
const struct thermal_trip *trip,
66-
bool crossed_up)
64+
static void bang_bang_trip_crossed(struct thermal_zone_device *tz,
65+
const struct thermal_trip *trip,
66+
bool crossed_up)
6767
{
6868
const struct thermal_trip_desc *td = trip_to_trip_desc(trip);
6969
struct thermal_instance *instance;
@@ -123,7 +123,7 @@ static void bang_bang_update_tz(struct thermal_zone_device *tz,
123123

124124
static struct thermal_governor thermal_gov_bang_bang = {
125125
.name = "bang_bang",
126-
.trip_crossed = bang_bang_control,
126+
.trip_crossed = bang_bang_trip_crossed,
127127
.manage = bang_bang_manage,
128128
.update_tz = bang_bang_update_tz,
129129
};

drivers/thermal/gov_user_space.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ static int user_space_bind(struct thermal_zone_device *tz)
2323
}
2424

2525
/**
26-
* notify_user_space - Notifies user space about thermal events
26+
* user_space_trip_crossed - Notify user space about trip crossing events
2727
* @tz: thermal_zone_device
2828
* @trip: trip point
2929
* @crossed_up: whether or not the trip has been crossed on the way up
3030
*
3131
* This function notifies the user space through UEvents.
3232
*/
33-
static void notify_user_space(struct thermal_zone_device *tz,
34-
const struct thermal_trip *trip,
35-
bool crossed_up)
33+
static void user_space_trip_crossed(struct thermal_zone_device *tz,
34+
const struct thermal_trip *trip,
35+
bool crossed_up)
3636
{
3737
char *thermal_prop[5];
3838
int i;
@@ -52,7 +52,7 @@ static void notify_user_space(struct thermal_zone_device *tz,
5252

5353
static struct thermal_governor thermal_gov_user_space = {
5454
.name = "user_space",
55-
.trip_crossed = notify_user_space,
55+
.trip_crossed = user_space_trip_crossed,
5656
.bind_to_tz = user_space_bind,
5757
};
5858
THERMAL_GOVERNOR_DECLARE(thermal_gov_user_space);

0 commit comments

Comments
 (0)