Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit caca8b80 authored by Joe Perches's avatar Joe Perches Committed by Len Brown
Browse files

thermal_sys: kernel style cleanups



Just a few tidies to make it more like most kernel sources.

A couple of long lines still remain.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Reviewed-by: default avatarJesper Juhl <jj@chaosbits.net>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent ec797685
Loading
Loading
Loading
Loading
+13 −17
Original line number Diff line number Diff line
@@ -824,7 +824,6 @@ int thermal_zone_bind_cooling_device(struct thermal_zone_device *tz,
	kfree(dev);
	return result;
}

EXPORT_SYMBOL(thermal_zone_bind_cooling_device);

/**
@@ -861,7 +860,6 @@ int thermal_zone_unbind_cooling_device(struct thermal_zone_device *tz,
	kfree(pos);
	return 0;
}

EXPORT_SYMBOL(thermal_zone_unbind_cooling_device);

static void thermal_release(struct device *dev)
@@ -869,7 +867,8 @@ static void thermal_release(struct device *dev)
	struct thermal_zone_device *tz;
	struct thermal_cooling_device *cdev;

	if (!strncmp(dev_name(dev), "thermal_zone", sizeof "thermal_zone" - 1)) {
	if (!strncmp(dev_name(dev), "thermal_zone",
		     sizeof("thermal_zone") - 1)) {
		tz = to_thermal_zone(dev);
		kfree(tz);
	} else {
@@ -889,8 +888,9 @@ static struct class thermal_class = {
 * @devdata:	device private data.
 * @ops:		standard thermal cooling devices callbacks.
 */
struct thermal_cooling_device *thermal_cooling_device_register(
     char *type, void *devdata, const struct thermal_cooling_device_ops *ops)
struct thermal_cooling_device *
thermal_cooling_device_register(char *type, void *devdata,
				const struct thermal_cooling_device_ops *ops)
{
	struct thermal_cooling_device *cdev;
	struct thermal_zone_device *pos;
@@ -960,7 +960,6 @@ struct thermal_cooling_device *thermal_cooling_device_register(
	device_unregister(&cdev->device);
	return ERR_PTR(result);
}

EXPORT_SYMBOL(thermal_cooling_device_register);

/**
@@ -1005,7 +1004,6 @@ void thermal_cooling_device_unregister(struct
	device_unregister(&cdev->device);
	return;
}

EXPORT_SYMBOL(thermal_cooling_device_unregister);

/**
@@ -1226,7 +1224,6 @@ struct thermal_zone_device *thermal_zone_device_register(char *type,
	device_unregister(&tz->device);
	return ERR_PTR(result);
}

EXPORT_SYMBOL(thermal_zone_device_register);

/**
@@ -1278,7 +1275,6 @@ void thermal_zone_device_unregister(struct thermal_zone_device *tz)
	device_unregister(&tz->device);
	return;
}

EXPORT_SYMBOL(thermal_zone_device_unregister);

#ifdef CONFIG_NET