alarmtimer: Fix kerneldoc comment for alarmtimer_suspend()
PATCH 1/1 alarmtimer: Fix kerneldoc comment for alarmtimer_suspend()
Updated comment to explain that dev is used for scheduling wake-up events.
Signed-off-by Zhan Xusheng <[email protected]>
--- kernel/time/alarmtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/alarmtimer.c +1 -1
@@ -208,7 +208,7 @@ EXPORT_SYMBOL_GPL(alarm_expires_remaining);#ifdef CONFIG_RTC_CLASS /** * alarmtimer_suspend - Suspend time callback -* @dev: unused +* @dev: the device that triggered the suspend, used for wake-up event * * When we are going into suspend, we look through the bases * to see which is the soonest timer to expire. We then
Signature · 1 line
2.43.0
Thomas Gleixner
maintainerQuoted 2 lines · Zhan Xusheng
Updated comment to explain that
devis used for scheduling wake-up events.
That's just wrong.
Quoted 10 lines
Signed-off-by Zhan Xusheng <[email protected]>--- kernel/time/alarmtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/time/alarmtimer.c +0
-0
kernel/time/alarmtimer.c EXPORT_SYMBOL_GPL(alarm_expires_remaining); · line 211
Quoted 5 lines
kernel/time/alarmtimer.c +1
-1@@ -208,7 +208,7 @@ EXPORT_SYMBOL_GPL(alarm_expires_remaining);#ifdef CONFIG_RTC_CLASS /** * alarmtimer_suspend - Suspend time callback -* @dev: unused +* @dev: the device that triggered the suspend, used for wake-up event
Which device triggered the suspend? Surely not @dev.
The code does not care about @dev as documented because it uses its own mechanism to retrieve the wakeup RTC device.
So you replace a perfectly correct comment with incomprehensible garbage. What's the improvement here?
Thanks,
tglx