rtc: fix typos in comments
Subsystems (3)
PATCH 1/1 rtc: 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/rtc/rtc-ds1685.c | 6 +++--- drivers/rtc/rtc-meson.c | 2 +- drivers/rtc/rtc-pcf8583.c | 2 +- drivers/rtc/rtc-rk808.c | 2 +- drivers/rtc/rtc-sa1100.c | 2 +- drivers/rtc/rtc-spear.c | 2 +- include/linux/rtc/ds1685.h | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-)
drivers/rtc/rtc-ds1685.c +3 -3
@@ -1231,7 +1231,7 @@ ds1685_rtc_probe(struct platform_device *pdev)dev_warn (&pdev->dev,"Main battery is exhausted! RTC may be invalid!\n" ); -/* Check the auxillary battery. It is optional. */ +/* Check the auxiliary battery. It is optional. */ if (!(rtc->read (rtc,RTC_EXT_CTRL_4A ) &RTC_CTRL_4A_VRT2 ))dev_warn (&pdev->dev,"Aux battery is exhausted or not available.\n" );
@@ -1395,7 +1395,7 @@ ds1685_rtc_poweroff(struct platform_device *pdev) rtc->write (rtc,RTC_CTRL_A , ctrla);/* -* Read Control 4A and check the status of the auxillary +* Read Control 4A and check the status of the auxiliary * battery. This must be present and working (VRT2 = 1) * for wakeup and kickstart functionality to be useful. */
@@ -1407,7 +1407,7 @@ ds1685_rtc_poweroff(struct platform_device *pdev) rtc->write (rtc,RTC_EXT_CTRL_4A , ctrl4a);/* -* The auxillary battery is present and working. +* The auxiliary battery is present and working. * Enable extended functions (ABE=1), enable * wake-up (WIE=1), and enable kickstart (KSE=1) * in Control 4B.
drivers/rtc/rtc-meson.c +1 -1
@@ -1,6 +1,6 @@// SPDX-License-Identifier: GPL-2.0 /* -* RTC driver for the interal RTC block in the Amlogic Meson6, Meson8, +* RTC driver for the internal RTC block in the Amlogic Meson6, Meson8, * Meson8b and Meson8m2 SoCs. * * The RTC is split in to two parts, the AHB front end and a simple serial
drivers/rtc/rtc-pcf8583.c +1 -1
@@ -7,7 +7,7 @@* * Driver for PCF8583 RTC & RAM chip * -* Converted to the generic RTC susbsystem by G. Liakhovetski (2006) +* Converted to the generic RTC subsystem by G. Liakhovetski (2006) */ #include <linux/module.h> #include <linux/i2c.h>
drivers/rtc/rtc-rk808.c +1 -1
@@ -295,7 +295,7 @@ static int rk808_rtc_alarm_irq_enable(struct device *dev,/* * We will just handle setting the frequency and make use the framework for -* reading the periodic interupts. +* reading the periodic interrupts. * * @freq: Current periodic IRQ freq: * bit 0: every second
drivers/rtc/rtc-sa1100.c +1 -1
@@ -228,7 +228,7 @@ int sa1100_rtc_init(struct platform_device *pdev, struct sa1100_rtc *info)* initialization is unknown and could in principle happen during * normal processing. * -* Notice that clearing bit 1 and 0 is accomplished by writting ONES to +* Notice that clearing bit 1 and 0 is accomplished by writing ONES to * the corresponding bits in RTSR. */ writel_relaxed (RTSR_AL |RTSR_HZ , info->rtsr);
drivers/rtc/rtc-spear.c +1 -1
@@ -43,7 +43,7 @@#define YEARS_UNITS (0xf<<16)/* years units position */ #define YEARS_TENS (0xf<<20)/* years tens position */ #define YEARS_HUNDREDS (0xf<<24)/* years hundereds position */ -#define YEARS_MILLENIUMS (0xf<<28)/* years millenium position */ +#define YEARS_MILLENIUMS (0xf<<28)/* years millennium position */ /* MASK SHIFT TIME_REG & ALARM_TIME_REG*/ #define SECOND_SHIFT 0x00/* seconds units */
include/linux/rtc/ds1685.h +2 -2
@@ -200,7 +200,7 @@ struct ds1685_rtc_platform_data {* access to the extended NV-SRAM by automatically incrementing the address * register when they are read from or written to. */ -#define RTC_CTRL_4A_VRT2 BIT(7)/* Auxillary Battery Status */ +#define RTC_CTRL_4A_VRT2 BIT(7)/* Auxiliary Battery Status */ #define RTC_CTRL_4A_INCR BIT(6)/* Increment-in-Progress Status */ #define RTC_CTRL_4A_PAB BIT(3)/* Power-Active Bar Control */ #define RTC_CTRL_4A_RF BIT(2)/* RAM-Clear Flag */
@@ -215,7 +215,7 @@ struct ds1685_rtc_platform_data {/* * Bit names in Extended Control Register 4B. */ -#define RTC_CTRL_4B_ABE BIT(7)/* Auxillary Battery Enable */ +#define RTC_CTRL_4B_ABE BIT(7)/* Auxiliary Battery Enable */ #define RTC_CTRL_4B_E32K BIT(6)/* Enable 32.768Hz on SQW Pin */ #define RTC_CTRL_4B_CS BIT(5)/* Crystal Select */ #define RTC_CTRL_4B_RCE BIT(4)/* RAM Clear-Enable */
Signature · 1 line
2.48.1
[email protected]
AI reviewSashiko has reviewed this patch and found no issues. It looks great!
Quoted 6 lines
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]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 61 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/rtc/rtc-ds1685.c | 6 +++--- drivers/rtc/rtc-meson.c | 2 +- drivers/rtc/rtc-pcf8583.c | 2 +- drivers/rtc/rtc-rk808.c | 2 +- drivers/rtc/rtc-sa1100.c | 2 +- drivers/rtc/rtc-spear.c | 2 +- include/linux/rtc/ds1685.h | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-)drivers/rtc/rtc-ds1685.c +3
-3@@ -1231,7 +1231,7 @@ ds1685_rtc_probe(struct platform_device *pdev)dev_warn (&pdev->dev,"Main battery is exhausted! RTC may be invalid!\n" ); -/* Check the auxillary battery. It is optional. */ +/* Check the auxiliary battery. It is optional. */ if (!(rtc->read (rtc,RTC_EXT_CTRL_4A ) &RTC_CTRL_4A_VRT2 ))dev_warn (&pdev->dev,"Aux battery is exhausted or not available.\n" );@@ -1395,7 +1395,7 @@ ds1685_rtc_poweroff(struct platform_device *pdev) rtc->write (rtc,RTC_CTRL_A , ctrla);/* -* Read Control 4A and check the status of the auxillary +* Read Control 4A and check the status of the auxiliary * battery. This must be present and working (VRT2 = 1) * for wakeup and kickstart functionality to be useful. */ @@ -1407,7 +1407,7 @@ ds1685_rtc_poweroff(struct platform_device *pdev) rtc->write (rtc,RTC_EXT_CTRL_4A , ctrl4a);/* -* The auxillary battery is present and working. +* The auxiliary battery is present and working. * Enable extended functions (ABE=1), enable * wake-up (WIE=1), and enable kickstart (KSE=1) * in Control 4B. include/linux/rtc/ds1685.h +1
-1@@ -200,7 +200,7 @@ struct ds1685_rtc_platform_data {* access to the extended NV-SRAM by automatically incrementing the address * register when they are read from or written to. */ -#define RTC_CTRL_4A_VRT2 BIT(7)/* Auxillary Battery Status */ +#define RTC_CTRL_4A_VRT2 BIT(7)/* Auxiliary Battery Status */ #define RTC_CTRL_4A_INCR BIT(6)/* Increment-in-Progress Status */ #define RTC_CTRL_4A_PAB BIT(3)/* Power-Active Bar Control */ #define RTC_CTRL_4A_RF BIT(2)/* RAM-Clear Flag */
include/linux/rtc/ds1685.h struct ds1685_rtc_platform_data { · line 221
Quoted 8 lines
include/linux/rtc/ds1685.h +1
-1@@ -215,7 +215,7 @@ struct ds1685_rtc_platform_data {/* * Bit names in Extended Control Register 4B. */ -#define RTC_CTRL_4B_ABE BIT(7)/* Auxillary Battery Enable */ +#define RTC_CTRL_4B_ABE BIT(7)/* Auxiliary Battery Enable */ #define RTC_CTRL_4B_E32K BIT(6)/* Enable 32.768Hz on SQW Pin */ #define RTC_CTRL_4B_CS BIT(5)/* Crystal Select */ #define RTC_CTRL_4B_RCE BIT(4)/* RAM Clear-Enable */
Huh, I am honestly now wondering how I made such simple typos all those years ago, and why it took an AI agent to find them. At least I was consistent in making them, so that's gotta amount to something.
Thanks!