Skip to contentSkip to conversation

alarmtimer: Fix kerneldoc comment for alarmtimer_suspend()

PATCH In review Zhan Xusheng 2 participants 2 messages Feb 5 – Feb 24 Timekeeping, clocksource core, NTP, alarmtimer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 alarmtimer: Fix kerneldoc comment for alarmtimer_suspend()

Updated comment to explain that dev is used for scheduling wake-up events.

---
 kernel/time/alarmtimer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/alarmtimer.c +1 -1
index 069d93bfb0c7..2548292b207d 100644
@@ -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
maintainer
#1 lore raw
Quoted 2 lines · Zhan Xusheng

Updated comment to explain that dev is used for scheduling wake-up events.

That's just wrong.

Quoted 10 lines
---
 kernel/time/alarmtimer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/alarmtimer.c +0 -0
index 069d93bfb0c7..2548292b207d 100644

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