Skip to content

Commit

Permalink
thermal: core: Rename cdev-to-thermal-zone bind/unbind functions
Browse files Browse the repository at this point in the history
Rename thermal_zone_cdev_binding() and thermal_zone_cdev_unbinding()
to thermal_zone_cdev_bind() and thermal_zone_cdev_unbind(), respectively,
to make the naming more consistent with the rest of the code.

No functional impact.

Link: https://lore.kernel.org/linux-pm/19beefd9-d3f9-4d43-a45d-d241996de2d0@linaro.org/
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://patch.msgid.link/6093162.lOV4Wx5bFT@rjwysocki.net
  • Loading branch information
Rafael J. Wysocki committed Aug 23, 2024
1 parent 8144dbe commit 91d7ed9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/thermal/thermal_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -955,8 +955,8 @@ void print_bind_err_msg(struct thermal_zone_device *tz,
cdev->type, thermal_zone_trip_id(tz, trip), ret);
}

static void thermal_zone_cdev_binding(struct thermal_zone_device *tz,
struct thermal_cooling_device *cdev)
static void thermal_zone_cdev_bind(struct thermal_zone_device *tz,
struct thermal_cooling_device *cdev)
{
struct thermal_trip_desc *td;

Expand Down Expand Up @@ -1081,7 +1081,7 @@ __thermal_cooling_device_register(struct device_node *np,

/* Update binding information for 'this' new cdev */
list_for_each_entry(pos, &thermal_tz_list, node)
thermal_zone_cdev_binding(pos, cdev);
thermal_zone_cdev_bind(pos, cdev);

list_for_each_entry(pos, &thermal_tz_list, node)
if (atomic_cmpxchg(&pos->need_update, 1, 0))
Expand Down Expand Up @@ -1282,8 +1282,8 @@ void thermal_cooling_device_update(struct thermal_cooling_device *cdev)
}
EXPORT_SYMBOL_GPL(thermal_cooling_device_update);

static void thermal_zone_cdev_unbinding(struct thermal_zone_device *tz,
struct thermal_cooling_device *cdev)
static void thermal_zone_cdev_unbind(struct thermal_zone_device *tz,
struct thermal_cooling_device *cdev)
{
struct thermal_trip_desc *td;

Expand Down Expand Up @@ -1322,7 +1322,7 @@ void thermal_cooling_device_unregister(struct thermal_cooling_device *cdev)

/* Unbind all thermal zones associated with 'this' cdev */
list_for_each_entry(tz, &thermal_tz_list, node)
thermal_zone_cdev_unbinding(tz, cdev);
thermal_zone_cdev_unbind(tz, cdev);

mutex_unlock(&thermal_list_lock);

Expand Down Expand Up @@ -1528,7 +1528,7 @@ thermal_zone_device_register_with_trips(const char *type,

/* Bind cooling devices for this zone */
list_for_each_entry(cdev, &thermal_cdev_list, node)
thermal_zone_cdev_binding(tz, cdev);
thermal_zone_cdev_bind(tz, cdev);

mutex_unlock(&thermal_list_lock);

Expand Down Expand Up @@ -1622,7 +1622,7 @@ void thermal_zone_device_unregister(struct thermal_zone_device *tz)

/* Unbind all cdevs associated with 'this' thermal zone */
list_for_each_entry(cdev, &thermal_cdev_list, node)
thermal_zone_cdev_unbinding(tz, cdev);
thermal_zone_cdev_unbind(tz, cdev);

mutex_unlock(&thermal_list_lock);

Expand Down

0 comments on commit 91d7ed9

Please sign in to comment.