Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 28d5cc1

Browse files
committed
thermal: trip: Rename __thermal_zone_set_trips() to thermal_zone_set_trips()
Drop the pointless double underline prefix from the function name as per the subject. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent f41f23b commit 28d5cc1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

drivers/thermal/thermal_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ void __thermal_zone_device_update(struct thermal_zone_device *tz,
513513
if (tz->temperature == THERMAL_TEMP_INVALID)
514514
return;
515515

516-
__thermal_zone_set_trips(tz);
516+
thermal_zone_set_trips(tz);
517517

518518
tz->notify_event = event;
519519

drivers/thermal/thermal_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ void thermal_governor_update_tz(struct thermal_zone_device *tz,
242242

243243
const char *thermal_trip_type_name(enum thermal_trip_type trip_type);
244244

245-
void __thermal_zone_set_trips(struct thermal_zone_device *tz);
245+
void thermal_zone_set_trips(struct thermal_zone_device *tz);
246246
int thermal_zone_trip_id(const struct thermal_zone_device *tz,
247247
const struct thermal_trip *trip);
248248
void thermal_zone_trip_updated(struct thermal_zone_device *tz,

drivers/thermal/thermal_trip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int thermal_zone_get_num_trips(struct thermal_zone_device *tz)
6262
EXPORT_SYMBOL_GPL(thermal_zone_get_num_trips);
6363

6464
/**
65-
* __thermal_zone_set_trips - Computes the next trip points for the driver
65+
* thermal_zone_set_trips - Computes the next trip points for the driver
6666
* @tz: a pointer to a thermal zone device structure
6767
*
6868
* The function computes the next temperature boundaries by browsing
@@ -76,7 +76,7 @@ EXPORT_SYMBOL_GPL(thermal_zone_get_num_trips);
7676
*
7777
* It does not return a value
7878
*/
79-
void __thermal_zone_set_trips(struct thermal_zone_device *tz)
79+
void thermal_zone_set_trips(struct thermal_zone_device *tz)
8080
{
8181
const struct thermal_trip_desc *td;
8282
int low = -INT_MAX, high = INT_MAX;

0 commit comments

Comments
 (0)