All of lore.kernel.org
 help / color / mirror / Atom feed
* + acpi-thermal-add-eol-to-the-trip_point_n_type-strings.patch added to -mm tree
@ 2009-11-03  0:01 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2009-11-03  0:01 UTC (permalink / raw)
  To: mm-commits; +Cc: amit.kucheria, lenb, rui.zhang


The patch titled
     acpi: thermal: add EOL to the trip_point_N_type strings
has been added to the -mm tree.  Its filename is
     acpi-thermal-add-eol-to-the-trip_point_n_type-strings.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: acpi: thermal: add EOL to the trip_point_N_type strings
From: Amit Kucheria <amit.kucheria@canonical.com>

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 <amit.kucheria@canonical.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---


diff -puN drivers/thermal/thermal_sys.c~acpi-thermal-add-eol-to-the-trip_point_n_type-strings drivers/thermal/thermal_sys.c
--- a/drivers/thermal/thermal_sys.c~acpi-thermal-add-eol-to-the-trip_point_n_type-strings
+++ a/drivers/thermal/thermal_sys.c
@@ -180,15 +180,15 @@ trip_point_type_show(struct device *dev,
 
 	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");
 	}
 }
 
_

Patches currently in -mm which might be from amit.kucheria@canonical.com are

acpi-thermal-add-eol-to-the-trip_point_n_type-strings.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-03  0:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-03  0:01 + acpi-thermal-add-eol-to-the-trip_point_n_type-strings.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.