macintosh: fix typos and repeated words in comments
cover macintosh: fix typos and repeated words in comments
This corrects 3 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 (3):
macintosh: fix typos in comments
bus: fsl-mc: fix repeated word 'for' in comment
macintosh: fix repeated word 'up' in comment
drivers/bus/fsl-mc/fsl-mc-msi.c | 2 +- drivers/macintosh/adbhid.c | 4 ++-- drivers/macintosh/macio_asic.c | 2 +- drivers/macintosh/mediabay.c | 2 +- drivers/macintosh/via-pmu.c | 6 +++--- drivers/macintosh/windfarm_lm75_sensor.c | 2 +- drivers/macintosh/windfarm_pm81.c | 2 +- drivers/macintosh/windfarm_pm91.c | 2 +- drivers/soc/fsl/qbman/qman_portal.c | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/3 macintosh: 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/macintosh/adbhid.c | 4 ++-- drivers/macintosh/macio_asic.c | 2 +- drivers/macintosh/via-pmu.c | 6 +++--- drivers/macintosh/windfarm_lm75_sensor.c | 2 +- drivers/macintosh/windfarm_pm81.c | 2 +- drivers/macintosh/windfarm_pm91.c | 2 +- drivers/soc/fsl/qbman/qman_portal.c | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-)
drivers/macintosh/adbhid.c +2 -2
@@ -32,7 +32,7 @@* * Improve Kensington support. * Split mouse/kbd -* Move to syfs +* Move to sysfs */ #include <linux/module.h>
@@ -604,7 +604,7 @@ adbhid_buttons_input(unsigned char *data, int nb, int autopoll)case 0x7f :case 0xff : -/* keypad overlay toogle */ +/* keypad overlay toggle */ break ;default :
drivers/macintosh/macio_asic.c +1 -1
@@ -749,7 +749,7 @@ static void macio_pci_remove(struct pci_dev* pdev)/* * MacIO is matched against any Apple ID, it's probe() function -* will then decide wether it applies or not +* will then decide whether it applies or not */ static const struct pci_device_id pci_ids[] = { { .vendor =PCI_VENDOR_ID_APPLE ,
drivers/macintosh/via-pmu.c +3 -3
@@ -482,7 +482,7 @@ static int __init via_pmu_start(void)/* Make sure PMU settle down before continuing. This is _very_ important * since the IDE probe may shut interrupts down for quite a bit of time. If * a PMU communication is pending while this happens, the PMU may timeout -* Not that on Core99 machines, the PMU keeps sending us environement +* Not that on Core99 machines, the PMU keeps sending us environment * messages, we should find a way to either fix IDE or make it call * pmu_suspend() before masking interrupts. This can also happens while * scolling with some fbdevs.
@@ -1286,7 +1286,7 @@ pmu_wait_complete(struct adb_request *req)/* This function loops until the PMU is idle and prevents it from * anwsering to ADB interrupts. pmu_request can still be called. -* This is done to avoid spurrious shutdowns when we know we'll have +* This is done to avoid spurious shutdowns when we know we'll have * interrupts switched off for a long time */ void
@@ -1549,7 +1549,7 @@ pmu_sr_intr(void)/* * For PMU sleep and freq change requests, we lock the * PMU until it's explicitly unlocked. This avoids any -* spurrious event polling getting in +* spurious event polling getting in */ current_req = req->next; req->reply_len += data_index;
drivers/macintosh/windfarm_lm75_sensor.c +1 -1
@@ -108,7 +108,7 @@ static int wf_lm75_probe(struct i2c_client *client)return -ENXIO ; } -/* Usual rant about sensor names not beeing very consistent in +/* Usual rant about sensor names not being very consistent in * the device-tree, oh well ... * Add more entries below as you deal with more setups */
drivers/macintosh/windfarm_pm81.c +1 -1
@@ -734,7 +734,7 @@ static void wf_smu_remove(struct platform_device *ddev)/* Release all sensors */ /* One more crappy race: I don't think we have any guarantee here -* that the attribute callback won't race with the sensor beeing +* that the attribute callback won't race with the sensor being * disposed of, and I'm not 100% certain what best way to deal * with that except by adding locks all over... I'll do that * eventually but heh, who ever rmmod this module anyway ?
drivers/macintosh/windfarm_pm91.c +1 -1
@@ -656,7 +656,7 @@ static void wf_smu_remove(struct platform_device *ddev)/* Release all sensors */ /* One more crappy race: I don't think we have any guarantee here -* that the attribute callback won't race with the sensor beeing +* that the attribute callback won't race with the sensor being * disposed of, and I'm not 100% certain what best way to deal * with that except by adding locks all over... I'll do that * eventually but heh, who ever rmmod this module anyway ?
drivers/soc/fsl/qbman/qman_portal.c +1 -1
@@ -33,7 +33,7 @@struct qman_portal *qman_dma_portal;EXPORT_SYMBOL (qman_dma_portal); -/* Enable portal interupts (as opposed to polling mode) */ +/* Enable portal interrupts (as opposed to polling mode) */ #define CONFIG_FSL_DPA_PIRQ_SLOW 1#define CONFIG_FSL_DPA_PIRQ_FAST 1
Signature · 1 line
2.48.1
PATCH 2/3 bus: fsl-mc: fix repeated word 'for' in comment
In reply to Hemanth SelamDrop the second 'for', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.
--- drivers/bus/fsl-mc/fsl-mc-msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/fsl-mc/fsl-mc-msi.c +1 -1
@@ -57,7 +57,7 @@ static void fsl_mc_write_msi_msg(struct msi_desc *msi_desc, struct msi_msg *msg) } }else {/* -* IRQ is for for a child device of mc_bus_dev +* IRQ is for a child device of mc_bus_dev */ error = dprc_set_obj_irq(mc_bus_dev->mc_io, MC_CMD_FLAG_INTR_DIS | MC_CMD_FLAG_PRI,
Signature · 1 line
2.48.1
PATCH 3/3 macintosh: fix repeated word 'up' in comment
In reply to Hemanth SelamDrop the second 'up', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.
--- drivers/macintosh/mediabay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/macintosh/mediabay.c +1 -1
@@ -331,7 +331,7 @@ static void keylargo_mb_un_reset_ide(struct media_bay_info* bay)static inline void set_mb_power (struct media_bay_info * bay,int onoff) { -/* Power up up and assert the bay reset line */ +/* Power up and assert the bay reset line */ if (onoff) { bay->ops->power (bay,1 ); bay->state = mb_powering_up;
Signature · 1 line
2.48.1
Re: [PATCH 2/3] bus: fsl-mc: fix repeated word 'for' in comment
In reply to Hemanth SelamQuoted 5 lines · Hemanth Selam
Drop the second 'for', 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]>
Re: [PATCH 2/3] bus: fsl-mc: fix repeated word 'for' in comment
In reply to Hemanth SelamQuoted 4 lines · Hemanth Selam
Drop the second 'for', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.
Applied, thanks!
[2/3] bus: fsl-mc: fix repeated word 'for' in comment
commit: bada60f2d98c7cf252b1f8214e5b6ec96c429588
Best regards,
Signature · 1 line
Christophe Leroy (CS GROUP) <[email protected]>