watchdog: fix typos and repeated words in comments
cover watchdog: 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):
watchdog: fix typos in comments
watchdog: fix repeated words in comments
drivers/watchdog/davinci_wdt.c | 2 +- drivers/watchdog/max63xx_wdt.c | 2 +- drivers/watchdog/pc87413_wdt.c | 2 +- drivers/watchdog/pcwd_pci.c | 2 +- drivers/watchdog/pcwd_usb.c | 2 +- drivers/watchdog/wdt.c | 4 ++-- drivers/watchdog/wdt977.c | 2 +- drivers/watchdog/wdt_pci.c | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/2 watchdog: 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/watchdog/davinci_wdt.c | 2 +- drivers/watchdog/max63xx_wdt.c | 2 +- drivers/watchdog/pcwd_pci.c | 2 +- drivers/watchdog/pcwd_usb.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
drivers/watchdog/davinci_wdt.c +1 -1
@@ -120,7 +120,7 @@ static unsigned int davinci_wdt_get_timeleft(struct watchdog_device *wdd)u32 val;struct davinci_wdt_device *davinci_wdt =watchdog_get_drvdata (wdd); -/* if timeout has occured then return 0 */ +/* if timeout has occurred then return 0 */ val =ioread32 (davinci_wdt->base +WDTCR );if (val &WDFLAG )return 0 ;
drivers/watchdog/max63xx_wdt.c +1 -1
@@ -64,7 +64,7 @@ struct max63xx_wdt {* delay (selected with the "nodelay" parameter). * * I also decided to remove from the tables any timeout smaller than a -* second, as it looked completly overkill... +* second, as it looked completely overkill... */ /* Timeouts in second */
drivers/watchdog/pcwd_pci.c +1 -1
@@ -114,7 +114,7 @@ static unsigned long is_active;static char expect_release;/* this is private data for each PCI-PC watchdog card */ static struct { - /* Wether or not the card has a temperature device */ + /* Whether or not the card has a temperature device */ int supports_temp; /* The card's boot status */ int boot_status;
drivers/watchdog/pcwd_usb.c +1 -1
@@ -138,7 +138,7 @@ struct usb_pcwd_private {/* true if we received a report after a command */ atomic_t cmd_received; -/* Wether or not the device exists */ +/* Whether or not the device exists */ int exists;/* locks this structure */ struct mutex mtx;
Signature · 1 line
2.48.1
PATCH 2/2 watchdog: fix repeated words in comments
In reply to Hemanth SelamDrop words accidentally written twice, reported by checkpatch.pl as a possible repeated word. Only touches comments, no code changes.
--- drivers/watchdog/pc87413_wdt.c | 2 +- drivers/watchdog/wdt.c | 4 ++-- drivers/watchdog/wdt977.c | 2 +- drivers/watchdog/wdt_pci.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-)
drivers/watchdog/pc87413_wdt.c +1 -1
@@ -333,7 +333,7 @@ static int pc87413_status(void)* @ppos: pointer to the position to write. No seeks allowed * * A write to a watchdog device is defined as a keepalive signal. Any -* write of data will do, as we we don't define content meaning. +* write of data will do, as we don't define content meaning. */ static ssize_t pc87413_write(struct file *file, const char __user *data,
drivers/watchdog/wdt.c +2 -2
@@ -311,7 +311,7 @@ static irqreturn_t wdt_interrupt(int irq, void *dev_id)* @ppos: pointer to the position to write. No seeks allowed * * A write to a watchdog device is defined as a keepalive signal. Any -* write of data will do, as we we don't define content meaning. +* write of data will do, as we don't define content meaning. */ static ssize_t wdt_write(struct file *file, const char __user *buf,
@@ -406,7 +406,7 @@ static long wdt_ioctl(struct file *file, unsigned int cmd, unsigned long arg)* open and on opening we load the counters. Counter zero is a 100Hz * cascade, into counter 1 which downcounts to reboot. When the counter * triggers counter 2 downcounts the length of the reset pulse which -* set set to be as long as possible. +* set to be as long as possible. */ static int wdt_open (struct inode *inode,struct file *file)
drivers/watchdog/wdt977.c +1 -1
@@ -298,7 +298,7 @@ static int wdt977_release(struct inode *inode, struct file *file)* @ppos: pointer to the position to write. No seeks allowed * * A write to a watchdog device is defined as a keepalive signal. Any -* write of data will do, as we we don't define content meaning. +* write of data will do, as we don't define content meaning. */ static ssize_t wdt977_write(struct file *file, const char __user *buf,
drivers/watchdog/wdt_pci.c +2 -2
@@ -347,7 +347,7 @@ static irqreturn_t wdtpci_interrupt(int irq, void *dev_id)* @ppos: pointer to the position to write. No seeks allowed * * A write to a watchdog device is defined as a keepalive signal. Any -* write of data will do, as we we don't define content meaning. +* write of data will do, as we don't define content meaning. */ static ssize_t wdtpci_write(struct file *file, const char __user *buf,
@@ -443,7 +443,7 @@ static long wdtpci_ioctl(struct file *file, unsigned int cmd,* open and on opening we load the counters. Counter zero is a 100Hz * cascade, into counter 1 which downcounts to reboot. When the counter * triggers counter 2 downcounts the length of the reset pulse which -* set set to be as long as possible. +* set to be as long as possible. */ static int wdtpci_open (struct inode *inode,struct file *file)
Signature · 1 line
2.48.1
Re: [PATCH 1/2] watchdog: fix typos in comments
In reply to Hemanth SelamQuoted 6 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]>
Applied.
Thanks,
Guenter
Re: [PATCH 2/2] watchdog: fix repeated words in comments
In reply to Hemanth SelamQuoted 5 lines · Hemanth Selam
Drop words accidentally written twice, reported by checkpatch.pl as a possible repeated word. Only touches comments, no code changes.
Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>
Applied.
Thanks,
Guenter