mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] tools/thermal: fix typo "binded" in comments
@ 2026-09-17  8:00 Hemanth Selam
  0 siblings, 0 replies; only message in thread
From: Hemanth Selam @ 2026-09-17  8:00 UTC (permalink / raw)
  To: Rafael J . Wysocki, Daniel Lezcano
  Cc: Zhang Rui, Lukasz Luba, Randy Dunlap, linux-pm, linux-kernel

"binded" is not a word; the past participle of "bind" is "bound".

The tmon.h comment counts cooling devices, so the noun is plural there,
matching the wording already used for MAX_NR_CDEV_TRIP.  The tui.c clause
needs "is" to read as a sentence.

Only touches comments, no code changes.

Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
Randy, your Reviewed-by was for the v1 series; the two hunks below changed
after it, so please say if you would rather I dropped the tag.

v2: tmon.h: "cooling device" -> "cooling devices".  Randy Dunlap pointed
    out the comment counts devices, and MAX_NR_CDEV_TRIP just above it
    already uses the plural.

    tui.c: "is bound to" rather than plain "bound to".  v1 left the
    comment reading "trip point id that bound to this cdev", which is
    still not a sentence.

    sysfs.c is unchanged from v1.

v1: https://lore.kernel.org/all/20260907064725.10686-4-hemanth.selam@gmail.com/

 tools/thermal/tmon/sysfs.c | 2 +-
 tools/thermal/tmon/tmon.h  | 2 +-
 tools/thermal/tmon/tui.c   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/thermal/tmon/sysfs.c b/tools/thermal/tmon/sysfs.c
index cb1108bc9249..5d64aff12a86 100644
--- a/tools/thermal/tmon/sysfs.c
+++ b/tools/thermal/tmon/sysfs.c
@@ -225,7 +225,7 @@ static int find_tzone_cdev(struct dirent *nl, char *tz_name,
 				cdev_name, cdev_name_linked, cdev_id);
 			tzi->cdev_binding |= (1 << cdev_id);
 
-			/* find the trip point in which the cdev is binded to
+			/* find the trip point in which the cdev is bound to
 			 * in this tzone
 			 */
 			snprintf(cdev_trip_name, sizeof(cdev_trip_name) - 1,
diff --git a/tools/thermal/tmon/tmon.h b/tools/thermal/tmon/tmon.h
index 44d16d778f04..b7767056f189 100644
--- a/tools/thermal/tmon/tmon.h
+++ b/tools/thermal/tmon/tmon.h
@@ -77,7 +77,7 @@ struct tz_info {
 	char type[256]; /* e.g. acpitz */
 	int instance;
 	int passive; /* active zone has passive node to force passive mode */
-	int nr_cdev; /* number of cooling device binded */
+	int nr_cdev; /* number of cooling devices bound */
 	int nr_trip_pts;
 	struct trip_point tp[MAX_NR_TRIP];
 	unsigned long cdev_binding; /* bitmap for attached cdevs */
diff --git a/tools/thermal/tmon/tui.c b/tools/thermal/tmon/tui.c
index 7f5dd2b87f15..dbc3ca95c724 100644
--- a/tools/thermal/tmon/tui.c
+++ b/tools/thermal/tmon/tui.c
@@ -238,7 +238,7 @@ void show_cooling_device(void)
 				unsigned long trip_binding =
 					ptdata.tzi[i].trip_binding[cdev_inst];
 				int k = 0; /* per zone trip point id that
-					    * binded to this cdev, one to
+					    * is bound to this cdev, one to
 					    * many possible based on the
 					    * binding bitmask.
 					    */
-- 
2.48.1


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

only message in thread, other threads:[~2026-09-17  8:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-17  8:00 [PATCH v2] tools/thermal: fix typo "binded" in comments Hemanth Selam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®