regulator: fix typos and repeated words in comments
cover regulator: 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):
regulator: fix typos in comments
regulator: fix repeated word in log message
drivers/regulator/ab8500-ext.c | 2 +- drivers/regulator/core.c | 2 +- drivers/regulator/pv88080-regulator.c | 4 ++-- drivers/regulator/tps6105x-regulator.c | 2 +- include/linux/regulator/driver.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/2 regulator: 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/regulator/ab8500-ext.c | 2 +- drivers/regulator/core.c | 2 +- drivers/regulator/pv88080-regulator.c | 4 ++-- include/linux/regulator/driver.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
drivers/regulator/ab8500-ext.c +1 -1
@@ -88,7 +88,7 @@ static struct regulator_init_data ab8500_ext_regulators[] = {* @update_reg: register to control on/off * @update_mask: mask to enable/disable and set mode of regulator * @update_val: bits holding the regulator current mode -* @update_val_hp: bits to set EN pin active (LPn pin deactive) +* @update_val_hp: bits to set EN pin active (LPn pin deactivate) * normally this means high power mode * @update_val_lp: bits to set EN pin active and LPn pin active * normally this means low power mode
drivers/regulator/core.c +1 -1
@@ -3029,7 +3029,7 @@ static int _regulator_do_enable(struct regulator_dev *rdev)*/ trace_regulator_enable_delay (rdev_get_name (rdev)); -/* If poll_enabled_time is set, poll upto the delay calculated +/* If poll_enabled_time is set, poll up to the delay calculated * above, delaying poll_enabled_time uS to check if the regulator * actually got enabled. * If the regulator isn't enabled after our delay helper has expired,
drivers/regulator/pv88080-regulator.c +2 -2
@@ -432,7 +432,7 @@ static int pv88080_i2c_probe(struct i2c_client *i2c) config.dev = chip->dev; config.regmap = chip->regmap; -/* Registeration for BUCK1, 2, 3 */ +/* Registration for BUCK1, 2, 3 */ for (i =0 ; i <PV88080_MAX_REGULATORS -1 ; i++) {if (init_data) config.init_data = &init_data[i];
@@ -498,7 +498,7 @@ static int pv88080_i2c_probe(struct i2c_client *i2c) pv88080_regulator_info[PV88080_ID_HVBUCK ].desc.vsel_mask = regmap_config->hvbuck_vsel_mask; -/* Registeration for HVBUCK */ +/* Registration for HVBUCK */ if (init_data) config.init_data = &init_data[PV88080_ID_HVBUCK ];
include/linux/regulator/driver.h +1 -1
@@ -362,7 +362,7 @@ enum regulator_type {* @off_on_delay: guard time (in uS), before re-enabling a regulator * * @poll_enabled_time: The polling interval (in uS) to use while checking that -* the regulator was actually enabled. Max upto enable_time. +* the regulator was actually enabled. Max up to enable_time. * * @of_map_mode: Maps a hardware mode defined in a DeviceTree to a standard mode */
Signature · 1 line
2.48.1
PATCH 2/2 regulator: fix repeated word in log message
In reply to Hemanth SelamDrop the word written twice, reported by checkpatch.pl as a possible repeated word.
Only the message text changes, no code changes.
--- drivers/regulator/tps6105x-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/tps6105x-regulator.c +1 -1
@@ -65,7 +65,7 @@ static int tps6105x_regulator_probe(struct platform_device *pdev)/* This instance is not set for regulator mode so bail out */ if (pdata->mode !=TPS6105X_MODE_VOLTAGE ) {dev_info (&pdev->dev, -"chip not in voltage mode mode, exit probe\n" ); +"chip not in voltage mode, exit probe\n" );return 0 ; }
Signature · 1 line
2.48.1
Mark Brown
maintainerQuoted 6 lines · Hemanth Selam
regulator: 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.
Quoted 6 lines
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.
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-7.4
Thanks!
[1/2] regulator: fix typos in comments
https://git.kernel.org/broonie/regulator/c/f267ad84f59c [2/2] regulator: fix repeated word in log message https://git.kernel.org/broonie/regulator/c/63ab1abd01a1
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark