rtc: omap: remove unused argument
Subsystems (2)
[email protected]
maintainerPATCH 1/1 rtc: omap: remove unused argument
From: Alexandre Belloni <[email protected]>
omap_rtc_power_off_program takes one argument that is never used. One call passes the struct device of the rtc but the other one passes its parent. To avoid confusion, stop taking any argument
--- drivers/rtc/rtc-omap.c | 5 ++--- drivers/soc/ti/pm33xx.c | 2 +- include/linux/rtc/rtc-omap.h | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-)
drivers/rtc/rtc-omap.c +2 -3
@@ -408,7 +408,7 @@ static struct omap_rtc *omap_rtc_power_off_rtc;* generates pmic_pwr_enable control, which can be used to control an external * PMIC. */ -int omap_rtc_power_off_program (struct device *dev) +int omap_rtc_power_off_program (void ) {struct omap_rtc *rtc = omap_rtc_power_off_rtc;struct rtc_time tm;
@@ -481,10 +481,9 @@ EXPORT_SYMBOL(omap_rtc_power_off_program);*/ static void omap_rtc_power_off (void ) { -struct rtc_device *rtc = omap_rtc_power_off_rtc->rtc;u32 val; -omap_rtc_power_off_program (rtc->dev.parent); +omap_rtc_power_off_program ();/* Set PMIC power enable and EXT_WAKEUP in case PB power on is used */ omap_rtc_power_off_rtc->type->unlock (omap_rtc_power_off_rtc);
drivers/soc/ti/pm33xx.c +1 -1
@@ -174,7 +174,7 @@ static struct wkup_m3_wakeup_src rtc_wake_src(void)static int am33xx_rtc_only_idle (unsigned long wfi_flags) { -omap_rtc_power_off_program (&omap_rtc->dev); +omap_rtc_power_off_program ();am33xx_do_wfi_sram (wfi_flags);return 0 ; }
include/linux/rtc/rtc-omap.h +1 -1
@@ -3,5 +3,5 @@#ifndef _LINUX_RTCOMAP_H_#define _LINUX_RTCOMAP_H_ -int omap_rtc_power_off_program (struct device *dev); +int omap_rtc_power_off_program (void );#endif /* _LINUX_RTCOMAP_H_ */
Signature · 1 line
2.55.0
[email protected]
AI reviewSashiko has reviewed this patch and found no issues. It looks great!
Quoted 7 lines
From: Alexandre Belloni <[email protected]>
omap_rtc_power_off_programtakes one argument that is never used. One call passes the struct device of the rtc but the other one passes its parent. To avoid confusion, stop taking any argumentSigned-off-by Alexandre Belloni <[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 65 lines · On 16:26-20260917, [email protected] wrote:
From: Alexandre Belloni <[email protected]>
omap_rtc_power_off_programtakes one argument that is never used. One call passes the struct device of the rtc but the other one passes its parent. To avoid confusion, stop taking any argumentSigned-off-by Alexandre Belloni <[email protected]>--- drivers/rtc/rtc-omap.c | 5 ++--- drivers/soc/ti/pm33xx.c | 2 +- include/linux/rtc/rtc-omap.h | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-)drivers/rtc/rtc-omap.c +2
-3@@ -408,7 +408,7 @@ static struct omap_rtc *omap_rtc_power_off_rtc;* generates pmic_pwr_enable control, which can be used to control an external * PMIC. */ -int omap_rtc_power_off_program (struct device *dev) +int omap_rtc_power_off_program (void ) {struct omap_rtc *rtc = omap_rtc_power_off_rtc;struct rtc_time tm;@@ -481,10 +481,9 @@ EXPORT_SYMBOL(omap_rtc_power_off_program);*/ static void omap_rtc_power_off (void ) { -struct rtc_device *rtc = omap_rtc_power_off_rtc->rtc;u32 val; -omap_rtc_power_off_program (rtc->dev.parent); +omap_rtc_power_off_program ();/* Set PMIC power enable and EXT_WAKEUP in case PB power on is used */ omap_rtc_power_off_rtc->type->unlock (omap_rtc_power_off_rtc);drivers/soc/ti/pm33xx.c +1
-1@@ -174,7 +174,7 @@ static struct wkup_m3_wakeup_src rtc_wake_src(void)static int am33xx_rtc_only_idle (unsigned long wfi_flags) { -omap_rtc_power_off_program (&omap_rtc->dev); +omap_rtc_power_off_program ();am33xx_do_wfi_sram (wfi_flags);return 0 ; }include/linux/rtc/rtc-omap.h +1
-1@@ -3,5 +3,5 @@#ifndef _LINUX_RTCOMAP_H_#define _LINUX_RTCOMAP_H_ -int omap_rtc_power_off_program (struct device *dev); +int omap_rtc_power_off_program (void );#endif /* _LINUX_RTCOMAP_H_ */ Signature · 1 line
2.55.0
Signature · 4 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D https://ti.com/opensource