]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
thermal: trip: Rename __thermal_zone_set_trips() to thermal_zone_set_trips()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 7 Jun 2024 07:33:53 +0000 (09:33 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Jun 2024 19:04:48 +0000 (21:04 +0200)
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>
drivers/thermal/thermal_core.c
drivers/thermal/thermal_core.h
drivers/thermal/thermal_trip.c

index bd31193bb58319984185ed71331b6176a913bb3a..6acaa4b50273950c4648f76123a4c16b22455227 100644 (file)
@@ -513,7 +513,7 @@ void __thermal_zone_device_update(struct thermal_zone_device *tz,
        if (tz->temperature == THERMAL_TEMP_INVALID)
                return;
 
-       __thermal_zone_set_trips(tz);
+       thermal_zone_set_trips(tz);
 
        tz->notify_event = event;
 
index afb00b567e680c0206f92edf25b231ea5bf9bddc..4af6b940ed7aa047b70981a8c33ba8530bacff16 100644 (file)
@@ -242,7 +242,7 @@ void thermal_governor_update_tz(struct thermal_zone_device *tz,
 
 const char *thermal_trip_type_name(enum thermal_trip_type trip_type);
 
-void __thermal_zone_set_trips(struct thermal_zone_device *tz);
+void thermal_zone_set_trips(struct thermal_zone_device *tz);
 int thermal_zone_trip_id(const struct thermal_zone_device *tz,
                         const struct thermal_trip *trip);
 void thermal_zone_trip_updated(struct thermal_zone_device *tz,
index 1ffb5aeab7fb6136f87b90b61bc8fd85d2282cf1..6ab1beb9bf0d8ec77279c28341fc0b505acadb6c 100644 (file)
@@ -62,7 +62,7 @@ int thermal_zone_get_num_trips(struct thermal_zone_device *tz)
 EXPORT_SYMBOL_GPL(thermal_zone_get_num_trips);
 
 /**
- * __thermal_zone_set_trips - Computes the next trip points for the driver
+ * thermal_zone_set_trips - Computes the next trip points for the driver
  * @tz: a pointer to a thermal zone device structure
  *
  * The function computes the next temperature boundaries by browsing
@@ -76,7 +76,7 @@ EXPORT_SYMBOL_GPL(thermal_zone_get_num_trips);
  *
  * It does not return a value
  */
-void __thermal_zone_set_trips(struct thermal_zone_device *tz)
+void thermal_zone_set_trips(struct thermal_zone_device *tz)
 {
        const struct thermal_trip_desc *td;
        int low = -INT_MAX, high = INT_MAX;