Skip to content

Commit 4963e34

Browse files
committed
thermal: core: Drop thermal_zone_device_exec()
Because thermal_zone_device_exec() has no users any more and there are no plans to use it anywhere, revert commit 9a99a99 ("thermal: core: Introduce thermal_zone_device_exec()") that introduced it. No functional impact. Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Daniel Lezcano <[email protected]>
1 parent b251ab2 commit 4963e34

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

drivers/thermal/thermal_core.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -495,25 +495,6 @@ void thermal_zone_device_update(struct thermal_zone_device *tz,
495495
}
496496
EXPORT_SYMBOL_GPL(thermal_zone_device_update);
497497

498-
/**
499-
* thermal_zone_device_exec - Run a callback under the zone lock.
500-
* @tz: Thermal zone.
501-
* @cb: Callback to run.
502-
* @data: Data to pass to the callback.
503-
*/
504-
void thermal_zone_device_exec(struct thermal_zone_device *tz,
505-
void (*cb)(struct thermal_zone_device *,
506-
unsigned long),
507-
unsigned long data)
508-
{
509-
mutex_lock(&tz->lock);
510-
511-
cb(tz, data);
512-
513-
mutex_unlock(&tz->lock);
514-
}
515-
EXPORT_SYMBOL_GPL(thermal_zone_device_exec);
516-
517498
static void thermal_zone_device_check(struct work_struct *work)
518499
{
519500
struct thermal_zone_device *tz = container_of(work, struct

include/linux/thermal.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,6 @@ int thermal_zone_unbind_cooling_device(struct thermal_zone_device *, int,
339339
struct thermal_cooling_device *);
340340
void thermal_zone_device_update(struct thermal_zone_device *,
341341
enum thermal_notify_event);
342-
void thermal_zone_device_exec(struct thermal_zone_device *tz,
343-
void (*cb)(struct thermal_zone_device *,
344-
unsigned long),
345-
unsigned long data);
346342

347343
struct thermal_cooling_device *thermal_cooling_device_register(const char *,
348344
void *, const struct thermal_cooling_device_ops *);

0 commit comments

Comments
 (0)