driver core: fix typos and repeated words in comments
Subsystems (9)
cover driver core: fix typos and repeated words in comments
This corrects 5 misspellings and repeated words in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.
Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.
The mistakes were found with scripts/checkpatch.pl against the list in scripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.
Tested by building x86_64 defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code that x86_64 defconfig does not compile has been read but not compiled.
Hemanth Selam (5):
driver core: fix typo "sucessfully" in comment
thermal: fix typos in comments
tools/thermal: fix typo "binded" in comments
cpuidle: fix repeated word 'that' in comment
ACPI: NUMA: fix typo in log message
drivers/acpi/numa/srat.c | 2 +- drivers/base/power/clock_ops.c | 2 +- drivers/cpuidle/cpuidle-tegra.c | 2 +- drivers/thermal/thermal_core.c | 2 +- drivers/thermal/thermal_of.c | 4 ++-- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 12 ++++++------ include/uapi/linux/thermal.h | 8 ++++---- tools/thermal/tmon/sysfs.c | 2 +- tools/thermal/tmon/tmon.h | 2 +- tools/thermal/tmon/tui.c | 2 +- 10 files changed, 19 insertions(+), 19 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/5 driver core: fix typo "sucessfully" in comment
Correct "sucessfully" to "successfully", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- drivers/base/power/clock_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/power/clock_ops.c +1 -1
@@ -250,7 +250,7 @@ EXPORT_SYMBOL_GPL(pm_clk_add);* * Add the clock to the list of clocks used for the power management of @dev. * The power-management code will take control of the clock reference, so -* callers should not call clk_put() on @clk after this function sucessfully +* callers should not call clk_put() on @clk after this function successfully * returned. */ int pm_clk_add_clk (struct device *dev,struct clk *clk)
Signature · 1 line
2.48.1
Re: [PATCH 1/5] driver core: fix typo "sucessfully" in comment
Quoted 16 lines · Hemanth Selam
Correct "sucessfully" to "successfully", reported by
scripts/checkpatch.plusing the misspelling list inscripts/spelling.txt. Only touches comments, no code changes.Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>--- drivers/base/power/clock_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/base/power/clock_ops.c +0
-0
drivers/base/power/clock_ops.c EXPORT_SYMBOL_GPL(pm_clk_add);
Quoted 9 lines
drivers/base/power/clock_ops.c +1
-2@@ -250,7 +250,7 @@ EXPORT_SYMBOL_GPL(pm_clk_add);* * Add the clock to the list of clocks used for the power management of @dev. * The power-management code will take control of the clock reference, so -* callers should not call clk_put() on @clk after this function sucessfully +* callers should not call clk_put() on @clk after this function successfully * returned. */ int pm_clk_add_clk (struct device *dev,struct clk *clk) --
Applied as 7.4 material, thanks!
PATCH 2/5 thermal: fix typos in comments
In reply to Hemanth SelamFix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- drivers/thermal/thermal_core.c | 2 +- drivers/thermal/thermal_of.c | 4 ++-- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 12 ++++++------ include/uapi/linux/thermal.h | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-)
drivers/thermal/thermal_core.c +1 -1
@@ -1662,7 +1662,7 @@ EXPORT_SYMBOL_GPL(thermal_zone_device_unregister);* * Return: On success returns a reference to an unique thermal zone with * matching name equals to @name, an ERR_PTR otherwise (-EINVAL for invalid -* paramenters, -ENODEV for not found and -EEXIST for multiple matches). +* parameters, -ENODEV for not found and -EEXIST for multiple matches). */ struct thermal_zone_device *thermal_zone_get_zone_by_name (const char *name) {
drivers/thermal/thermal_of.c +2 -2
@@ -349,10 +349,10 @@ static bool thermal_of_should_bind(struct thermal_zone_device *tz, }/** -* thermal_of_zone_unregister - Cleanup the specific allocated ressources +* thermal_of_zone_unregister - Cleanup the specific allocated resources * * This function disables the thermal zone and frees the different -* ressources allocated specific to the thermal OF. +* resources allocated specific to the thermal OF. * * @tz: a pointer to the thermal zone structure */
drivers/thermal/ti-soc-thermal/ti-bandgap.c +6 -6
@@ -332,7 +332,7 @@ static inline int ti_bandgap_validate(struct ti_bandgap *bgp, int id)* ti_bandgap_read_counter() - read the sensor counter * @bgp: pointer to bandgap instance * @id: sensor id -* @interval: resulting update interval in miliseconds +* @interval: resulting update interval in milliseconds */ static void ti_bandgap_read_counter (struct ti_bandgap *bgp,int id,int *interval)
@@ -352,7 +352,7 @@ static void ti_bandgap_read_counter(struct ti_bandgap *bgp, int id,* ti_bandgap_read_counter_delay() - read the sensor counter delay * @bgp: pointer to bandgap instance * @id: sensor id -* @interval: resulting update interval in miliseconds +* @interval: resulting update interval in milliseconds */ static void ti_bandgap_read_counter_delay (struct ti_bandgap *bgp,int id,int *interval)
@@ -394,7 +394,7 @@ static void ti_bandgap_read_counter_delay(struct ti_bandgap *bgp, int id,* ti_bandgap_read_update_interval() - read the sensor update interval * @bgp: pointer to bandgap instance * @id: sensor id -* @interval: resulting update interval in miliseconds +* @interval: resulting update interval in milliseconds * * Return: 0 on success or the proper error code */
@@ -427,7 +427,7 @@ int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id,* ti_bandgap_write_counter_delay() - set the counter_delay * @bgp: pointer to bandgap instance * @id: sensor id -* @interval: desired update interval in miliseconds +* @interval: desired update interval in milliseconds * * Return: 0 on success or the proper error code */
@@ -471,7 +471,7 @@ static int ti_bandgap_write_counter_delay(struct ti_bandgap *bgp, int id,* ti_bandgap_write_counter() - set the bandgap sensor counter * @bgp: pointer to bandgap instance * @id: sensor id -* @interval: desired update interval in miliseconds +* @interval: desired update interval in milliseconds */ static void ti_bandgap_write_counter (struct ti_bandgap *bgp,int id,u32 interval)
@@ -486,7 +486,7 @@ static void ti_bandgap_write_counter(struct ti_bandgap *bgp, int id,* ti_bandgap_write_update_interval() - set the update interval * @bgp: pointer to bandgap instance * @id: sensor id -* @interval: desired update interval in miliseconds +* @interval: desired update interval in milliseconds * * Return: 0 on success or the proper error code */
include/uapi/linux/thermal.h +4 -4
@@ -81,11 +81,11 @@ enum thermal_genl_event {THERMAL_GENL_EVENT_CDEV_STATE_UPDATE ,/* Cdev state updated */ THERMAL_GENL_EVENT_TZ_GOV_CHANGE ,/* Governor policy changed */ THERMAL_GENL_EVENT_CPU_CAPABILITY_CHANGE ,/* CPU capability changed */ -THERMAL_GENL_EVENT_THRESHOLD_ADD ,/* A thresold has been added */ -THERMAL_GENL_EVENT_THRESHOLD_DELETE ,/* A thresold has been deleted */ +THERMAL_GENL_EVENT_THRESHOLD_ADD ,/* A threshold has been added */ +THERMAL_GENL_EVENT_THRESHOLD_DELETE ,/* A threshold has been deleted */ THERMAL_GENL_EVENT_THRESHOLD_FLUSH ,/* All thresolds have been deleted */ -THERMAL_GENL_EVENT_THRESHOLD_UP ,/* A thresold has been crossed the way up */ -THERMAL_GENL_EVENT_THRESHOLD_DOWN ,/* A thresold has been crossed the way down */ +THERMAL_GENL_EVENT_THRESHOLD_UP ,/* A threshold has been crossed the way up */ +THERMAL_GENL_EVENT_THRESHOLD_DOWN ,/* A threshold has been crossed the way down */ __THERMAL_GENL_EVENT_MAX, };#define THERMAL_GENL_EVENT_MAX (__THERMAL_GENL_EVENT_MAX - 1)
Signature · 1 line
2.48.1
Re: [PATCH 2/5] thermal: fix typos in comments
Quoted 113 lines · Hemanth Selam
Fix typos in comments, reported by
scripts/checkpatch.plusing the misspelling list inscripts/spelling.txt. Only touches comments, no code changes.Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>--- drivers/thermal/thermal_core.c | 2 +- drivers/thermal/thermal_of.c | 4 ++-- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 12 ++++++------ include/uapi/linux/thermal.h | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-)drivers/thermal/thermal_core.c +1
-1@@ -1662,7 +1662,7 @@ EXPORT_SYMBOL_GPL(thermal_zone_device_unregister);* * Return: On success returns a reference to an unique thermal zone with * matching name equals to @name, an ERR_PTR otherwise (-EINVAL for invalid -* paramenters, -ENODEV for not found and -EEXIST for multiple matches). +* parameters, -ENODEV for not found and -EEXIST for multiple matches). */ struct thermal_zone_device *thermal_zone_get_zone_by_name (const char *name) {drivers/thermal/thermal_of.c +2
-2@@ -349,10 +349,10 @@ static bool thermal_of_should_bind(struct thermal_zone_device *tz, }/** -* thermal_of_zone_unregister - Cleanup the specific allocated ressources +* thermal_of_zone_unregister - Cleanup the specific allocated resources * * This function disables the thermal zone and frees the different -* ressources allocated specific to the thermal OF. +* resources allocated specific to the thermal OF. * * @tz: a pointer to the thermal zone structure */ drivers/thermal/ti-soc-thermal/ti-bandgap.c +6
-6@@ -332,7 +332,7 @@ static inline int ti_bandgap_validate(struct ti_bandgap *bgp, int id)* ti_bandgap_read_counter() - read the sensor counter * @bgp: pointer to bandgap instance * @id: sensor id -* @interval: resulting update interval in miliseconds +* @interval: resulting update interval in milliseconds */ static void ti_bandgap_read_counter (struct ti_bandgap *bgp,int id,int *interval)@@ -352,7 +352,7 @@ static void ti_bandgap_read_counter(struct ti_bandgap *bgp, int id,* ti_bandgap_read_counter_delay() - read the sensor counter delay * @bgp: pointer to bandgap instance * @id: sensor id -* @interval: resulting update interval in miliseconds +* @interval: resulting update interval in milliseconds */ static void ti_bandgap_read_counter_delay (struct ti_bandgap *bgp,int id,int *interval)@@ -394,7 +394,7 @@ static void ti_bandgap_read_counter_delay(struct ti_bandgap *bgp, int id,* ti_bandgap_read_update_interval() - read the sensor update interval * @bgp: pointer to bandgap instance * @id: sensor id -* @interval: resulting update interval in miliseconds +* @interval: resulting update interval in milliseconds * * Return: 0 on success or the proper error code */ @@ -427,7 +427,7 @@ int ti_bandgap_read_update_interval(struct ti_bandgap *bgp, int id,* ti_bandgap_write_counter_delay() - set the counter_delay * @bgp: pointer to bandgap instance * @id: sensor id -* @interval: desired update interval in miliseconds +* @interval: desired update interval in milliseconds * * Return: 0 on success or the proper error code */ @@ -471,7 +471,7 @@ static int ti_bandgap_write_counter_delay(struct ti_bandgap *bgp, int id,* ti_bandgap_write_counter() - set the bandgap sensor counter * @bgp: pointer to bandgap instance * @id: sensor id -* @interval: desired update interval in miliseconds +* @interval: desired update interval in milliseconds */ static void ti_bandgap_write_counter (struct ti_bandgap *bgp,int id,u32 interval)@@ -486,7 +486,7 @@ static void ti_bandgap_write_counter(struct ti_bandgap *bgp, int id,* ti_bandgap_write_update_interval() - set the update interval * @bgp: pointer to bandgap instance * @id: sensor id -* @interval: desired update interval in miliseconds +* @interval: desired update interval in milliseconds * * Return: 0 on success or the proper error code */ include/uapi/linux/thermal.h +1
-2@@ -81,11 +81,11 @@ enum thermal_genl_event {THERMAL_GENL_EVENT_CDEV_STATE_UPDATE ,/* Cdev state updated */ THERMAL_GENL_EVENT_TZ_GOV_CHANGE ,/* Governor policy changed */ THERMAL_GENL_EVENT_CPU_CAPABILITY_CHANGE ,/* CPU capability changed */ -THERMAL_GENL_EVENT_THRESHOLD_ADD ,/* A thresold has been added */ - THERMAL_GENL_EVENT_THRESHOLD_DELETE, /* A thresold has been deleted */ + THERMAL_GENL_EVENT_THRESHOLD_ADD, /* A threshold has been added */
include/uapi/linux/thermal.h enum thermal_genl_event {
Quoted 10 lines
include/uapi/linux/thermal.h +3
-3+THERMAL_GENL_EVENT_THRESHOLD_DELETE ,/* A threshold has been deleted */ THERMAL_GENL_EVENT_THRESHOLD_FLUSH ,/* All thresolds have been deleted */ -THERMAL_GENL_EVENT_THRESHOLD_UP ,/* A thresold has been crossed the way up */ -THERMAL_GENL_EVENT_THRESHOLD_DOWN ,/* A thresold has been crossed the way down */ +THERMAL_GENL_EVENT_THRESHOLD_UP ,/* A threshold has been crossed the way up */ +THERMAL_GENL_EVENT_THRESHOLD_DOWN ,/* A threshold has been crossed the way down */ __THERMAL_GENL_EVENT_MAX, };#define THERMAL_GENL_EVENT_MAX (__THERMAL_GENL_EVENT_MAX - 1) --
Applied as 7.4 material, thanks!
PATCH 3/5 tools/thermal: fix typo "binded" in comments
In reply to Hemanth SelamCorrect "binded" to "bound", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- 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(-)
tools/thermal/tmon/sysfs.c +1 -1
@@ -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,
tools/thermal/tmon/tmon.h +1 -1
@@ -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 device bound */ int nr_trip_pts;struct trip_point tp[MAX_NR_TRIP ];unsigned long cdev_binding;/* bitmap for attached cdevs */
tools/thermal/tmon/tui.c +1 -1
@@ -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 +* bound to this cdev, one to * many possible based on the * binding bitmask. */
Signature · 1 line
2.48.1
Re: [PATCH 3/5] tools/thermal: fix typo "binded" in comments
tools/thermal/tmon/tmon.h struct tz_info { · line 80
Quoted 10 lines · Hemanth Selam
tools/thermal/tmon/tmon.h +1
-1@@ -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 device bound */
devices
Quoted 3 lines
tools/thermal/tmon/tmon.h +0
-0int nr_trip_pts;struct trip_point tp[MAX_NR_TRIP ];unsigned long cdev_binding;/* bitmap for attached cdevs */
Signature · 1 line
~Randy
PATCH 4/5 cpuidle: fix repeated word 'that' in comment
In reply to Hemanth SelamDrop the second 'that', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.
--- drivers/cpuidle/cpuidle-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpuidle/cpuidle-tegra.c +1 -1
@@ -281,7 +281,7 @@ static int tegra114_enter_s2idle(struct cpuidle_device *dev,* LP2 | C7 (CPU core power gating) * LP2 | CC6 (CPU cluster power gating) * -* Note that that the older CPUIDLE driver versions didn't explicitly +* Note that the older CPUIDLE driver versions didn't explicitly * differentiate the LP2 states because these states either used the same * code path or because CC6 wasn't supported. */
Signature · 1 line
2.48.1
Re: [PATCH 4/5] cpuidle: fix repeated word 'that' in comment
Quoted 15 lines · Hemanth Selam
Drop the second 'that', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.
Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>--- drivers/cpuidle/cpuidle-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpuidle/cpuidle-tegra.c +0
-0
drivers/cpuidle/cpuidle-tegra.c static int tegra114_enter_s2idle(struct cpuidle_device *dev,
Quoted 9 lines
drivers/cpuidle/cpuidle-tegra.c +1
-2@@ -281,7 +281,7 @@ static int tegra114_enter_s2idle(struct cpuidle_device *dev,* LP2 | C7 (CPU core power gating) * LP2 | CC6 (CPU cluster power gating) * -* Note that that the older CPUIDLE driver versions didn't explicitly +* Note that the older CPUIDLE driver versions didn't explicitly * differentiate the LP2 states because these states either used the same * code path or because CC6 wasn't supported. */ --
Applied as 7.4 material, thanks!
PATCH 5/5 ACPI: NUMA: fix typo in log message
In reply to Hemanth SelamCorrect the misspelling in a message the user sees, reported by scripts/checkpatch.pl using the list in scripts/spelling.txt.
Only the message text changes, no code changes.
--- drivers/acpi/numa/srat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/numa/srat.c +1 -1
@@ -111,7 +111,7 @@ int __init fix_pxm_node_maps(int max_nid)for (j =0 ; j <= max_nid; j++) {if ((emu_nid_to_phys[j] == i) &&WARN (node_to_pxm_map_copy[j] !=PXM_INVAL , -"Node %d is already binded to PXM %d\n" , +"Node %d is already bound to PXM %d\n" , j, node_to_pxm_map_copy[j]))return -1 ;if (emu_nid_to_phys[j] == i) {
Signature · 1 line
2.48.1
Re: [PATCH 5/5] ACPI: NUMA: fix typo in log message
Quoted 17 lines · Hemanth Selam
Correct the misspelling in a message the user sees, reported by
scripts/checkpatch.plusing the list inscripts/spelling.txt.Only the message text changes, no code changes.
Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>--- drivers/acpi/numa/srat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/acpi/numa/srat.c +0
-0
drivers/acpi/numa/srat.c int __init fix_pxm_node_maps(int max_nid)
Quoted 9 lines
drivers/acpi/numa/srat.c +1
-2@@ -111,7 +111,7 @@ int __init fix_pxm_node_maps(int max_nid)for (j =0 ; j <= max_nid; j++) {if ((emu_nid_to_phys[j] == i) &&WARN (node_to_pxm_map_copy[j] !=PXM_INVAL , -"Node %d is already binded to PXM %d\n" , +"Node %d is already bound to PXM %d\n" , j, node_to_pxm_map_copy[j]))return -1 ;if (emu_nid_to_phys[j] == i) { --
Applied as 7.4 material, thanks!
Quoted 29 lines · Hemanth Selam
This corrects 5 misspellings and repeated words in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.
Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.
The mistakes were found with
scripts/checkpatch.plagainst the list inscripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.Tested by building
x86_64defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code thatx86_64defconfig does not compile has been read but not compiled.Hemanth Selam (5):
driver core: fix typo "sucessfully" in comment
thermal: fix typos in comments
tools/thermal: fix typo "binded" in comments
cpuidle: fix repeated word 'that' in comment
ACPI: NUMA: fix typo in log message
Quoted 12 lines
drivers/acpi/numa/srat.c | 2 +- drivers/base/power/clock_ops.c | 2 +- drivers/cpuidle/cpuidle-tegra.c | 2 +- drivers/thermal/thermal_core.c | 2 +- drivers/thermal/thermal_of.c | 4 ++-- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 12 ++++++------ include/uapi/linux/thermal.h | 8 ++++---- tools/thermal/tmon/sysfs.c | 2 +- tools/thermal/tmon/tmon.h | 2 +- tools/thermal/tmon/tui.c | 2 +- 10 files changed, 19 insertions(+), 19 deletions(-)
For the series:
thanks.
Signature · 1 line
~Randy