platform/chrome: fix typos and repeated words in comments
Subsystems (3)
cover platform/chrome: fix typos and repeated words in comments
This corrects 2 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 (2):
platform/chrome: fix typos in comments platform/chrome: fix repeated word 'from' in comment
drivers/platform/chrome/cros_ec_ishtp.c | 2 +- drivers/platform/chrome/cros_ec_rpmsg.c | 2 +- drivers/platform/chrome/cros_usbpd_notify.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/2 platform/chrome: fix typos in comments
Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- drivers/platform/chrome/cros_ec_ishtp.c | 2 +- drivers/platform/chrome/cros_usbpd_notify.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/platform/chrome/cros_ec_ishtp.c +1 -1
@@ -369,7 +369,7 @@ static void ish_event_cb(struct ishtp_cl_device *cl_device)* @cros_ish_cl: ISHTP client instance * @reset: true if called from reset handler * -* This function complete the initializtion of the client. +* This function complete the initialization of the client. * * Return: 0 for success, negative error code for failure. */
drivers/platform/chrome/cros_usbpd_notify.c +2 -2
@@ -64,7 +64,7 @@ static void cros_usbpd_get_event_and_notify(struct device *dev,/* * We still send a 0 event out to older devices which don't -* have the updated device heirarchy. +* have the updated device hierarchy. */ if (!ec_dev) { dev_dbg(dev,
@@ -115,7 +115,7 @@ static int cros_usbpd_notify_probe_acpi(struct platform_device *pdev)if (!ec_dev) {/* * We continue even for older devices which don't have the -* correct device heirarchy, namely, GOOG0003 is a child +* correct device hierarchy, namely, GOOG0003 is a child * of GOOG0004. If GOOG0003 is a child of GOOG0004 and we * can't get a pointer to the Chrome EC device, defer the * probe function.
Signature · 1 line
2.48.1
Tzung-Bi Shih
maintainerRe: [PATCH 1/2] platform/chrome: fix typos in comments
Quoted 5 lines · Hemanth Selam
Fix typos in comments, reported by
scripts/checkpatch.plusing the misspelling list inscripts/spelling.txt. Only touches comments, no code changes.[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next
[1/2] platform/chrome: fix typos in comments
commit: 2d23d5e9cb468baf6e4fa78d0dd7e8555759385d
Thanks!
PATCH 2/2 platform/chrome: fix repeated word 'from' in comment
In reply to Hemanth SelamDrop the second 'from', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.
--- drivers/platform/chrome/cros_ec_rpmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/chrome/cros_ec_rpmsg.c +1 -1
@@ -20,7 +20,7 @@#define HOST_EVENT_MARK 2/** -* struct cros_ec_rpmsg_response - rpmsg message format from from EC. +* struct cros_ec_rpmsg_response - rpmsg message format from EC. * * @type: The type of message, should be either HOST_COMMAND_MARK or * HOST_EVENT_MARK, representing that the message is a response to
Signature · 1 line
2.48.1
Tzung-Bi Shih
maintainerRe: [PATCH 2/2] platform/chrome: fix repeated word 'from' in comment
Quoted 4 lines · Hemanth Selam
Drop the second 'from', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next
[2/2] platform/chrome: fix repeated word 'from' in comment
commit: 5859f97c6f404d07e89fe9c0d20a318ebf200bd1
Thanks!