Skip to content

Commit 77dc4f9

Browse files
Eduardo Valentinzhang-rui
authored andcommitted
thermal: core: remove a couple of style issues on helpers
Reorganizing the code of helper functions to improve readability and style, as recommended by checkpatch.pl. Cc: Zhang Rui <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Eduardo Valentin <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
1 parent 45cf2ec commit 77dc4f9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

drivers/thermal/thermal_core.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,9 @@ int get_tz_trend(struct thermal_zone_device *tz, int trip)
248248
}
249249
EXPORT_SYMBOL(get_tz_trend);
250250

251-
struct thermal_instance *get_thermal_instance(struct thermal_zone_device *tz,
252-
struct thermal_cooling_device *cdev, int trip)
251+
struct thermal_instance *
252+
get_thermal_instance(struct thermal_zone_device *tz,
253+
struct thermal_cooling_device *cdev, int trip)
253254
{
254255
struct thermal_instance *pos = NULL;
255256
struct thermal_instance *target_instance = NULL;
@@ -513,7 +514,7 @@ int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp)
513514
if (!ret && *temp < crit_temp)
514515
*temp = tz->emul_temperature;
515516
}
516-
517+
517518
mutex_unlock(&tz->lock);
518519
exit:
519520
return ret;
@@ -1192,7 +1193,7 @@ void thermal_cdev_update(struct thermal_cooling_device *cdev)
11921193
/* Make sure cdev enters the deepest cooling state */
11931194
list_for_each_entry(instance, &cdev->thermal_instances, cdev_node) {
11941195
dev_dbg(&cdev->device, "zone%d->target=%lu\n",
1195-
instance->tz->id, instance->target);
1196+
instance->tz->id, instance->target);
11961197
if (instance->target == THERMAL_NO_TARGET)
11971198
continue;
11981199
if (instance->target > target)

0 commit comments

Comments
 (0)