acpi: thermal: Add EOL to the trip_point_N_type strings
authorAmit Kucheria <[email protected]>
Fri, 16 Oct 2009 09:46:02 +0000 (12:46 +0300)
committerLen Brown <[email protected]>
Thu, 5 Nov 2009 22:33:24 +0000 (17:33 -0500)
Make the trip_point_N_type sysfs files return a string ending in EOL for
consistency with other sysfs files.

Signed-off-by: Amit Kucheria <[email protected]>
Acked-by: Zhang Rui <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Len Brown <[email protected]>
drivers/thermal/thermal_sys.c

index 4e83c297ec9efdc191c084f913637b8aaa0e7d2f..6f8d8f971212f39f0a86b2ac424433bf201f424b 100644 (file)
@@ -180,15 +180,15 @@ trip_point_type_show(struct device *dev, struct device_attribute *attr,
 
        switch (type) {
        case THERMAL_TRIP_CRITICAL:
-               return sprintf(buf, "critical");
+               return sprintf(buf, "critical\n");
        case THERMAL_TRIP_HOT:
-               return sprintf(buf, "hot");
+               return sprintf(buf, "hot\n");
        case THERMAL_TRIP_PASSIVE:
-               return sprintf(buf, "passive");
+               return sprintf(buf, "passive\n");
        case THERMAL_TRIP_ACTIVE:
-               return sprintf(buf, "active");
+               return sprintf(buf, "active\n");
        default:
-               return sprintf(buf, "unknown");
+               return sprintf(buf, "unknown\n");
        }
 }