Skip to content

Commit beafe82

Browse files
plbossartrafaeljw
authored andcommitted
PM: wakeup: fix kernel-doc warnings and fix typos
Remove make W=1 warnings and fit 'Itereates' typos drivers/base/power/wakeup.c:403: warning: wrong kernel-doc identifier on line: * device_wakeup_arm_wake_irqs(void) drivers/base/power/wakeup.c:419: warning: wrong kernel-doc identifier on line: * device_wakeup_disarm_wake_irqs(void) drivers/base/power/wakeup.c:537: warning: Function parameter or member 'enable' not described in 'device_set_wakeup_enable' drivers/base/power/wakeup.c:592: warning: expecting prototype for wakup_source_activate(). Prototype was for wakeup_source_activate() instead drivers/base/power/wakeup.c:697: warning: expecting prototype for wakup_source_deactivate(). Prototype was for wakeup_source_deactivate() instead drivers/base/power/wakeup.c:795: warning: Function parameter or member 't' not described in 'pm_wakeup_timer_fn' drivers/base/power/wakeup.c:795: warning: Excess function parameter 'data' description in 'pm_wakeup_timer_fn' drivers/base/power/wakeup.c:1027: warning: Function parameter or member 'set' not described in 'pm_wakep_autosleep_enabled' drivers/base/power/wakeup.c:1027: warning: Excess function parameter 'enabled' description in 'pm_wakep_autosleep_enabled' Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 12c0632 commit beafe82

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

drivers/base/power/wakeup.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,9 @@ void device_wakeup_detach_irq(struct device *dev)
400400
}
401401

402402
/**
403-
* device_wakeup_arm_wake_irqs(void)
403+
* device_wakeup_arm_wake_irqs -
404404
*
405-
* Itereates over the list of device wakeirqs to arm them.
405+
* Iterates over the list of device wakeirqs to arm them.
406406
*/
407407
void device_wakeup_arm_wake_irqs(void)
408408
{
@@ -416,9 +416,9 @@ void device_wakeup_arm_wake_irqs(void)
416416
}
417417

418418
/**
419-
* device_wakeup_disarm_wake_irqs(void)
419+
* device_wakeup_disarm_wake_irqs -
420420
*
421-
* Itereates over the list of device wakeirqs to disarm them.
421+
* Iterates over the list of device wakeirqs to disarm them.
422422
*/
423423
void device_wakeup_disarm_wake_irqs(void)
424424
{
@@ -532,6 +532,7 @@ EXPORT_SYMBOL_GPL(device_init_wakeup);
532532
/**
533533
* device_set_wakeup_enable - Enable or disable a device to wake up the system.
534534
* @dev: Device to handle.
535+
* @enable: enable/disable flag
535536
*/
536537
int device_set_wakeup_enable(struct device *dev, bool enable)
537538
{
@@ -581,7 +582,7 @@ static bool wakeup_source_not_registered(struct wakeup_source *ws)
581582
*/
582583

583584
/**
584-
* wakup_source_activate - Mark given wakeup source as active.
585+
* wakeup_source_activate - Mark given wakeup source as active.
585586
* @ws: Wakeup source to handle.
586587
*
587588
* Update the @ws' statistics and, if @ws has just been activated, notify the PM
@@ -686,7 +687,7 @@ static inline void update_prevent_sleep_time(struct wakeup_source *ws,
686687
#endif
687688

688689
/**
689-
* wakup_source_deactivate - Mark given wakeup source as inactive.
690+
* wakeup_source_deactivate - Mark given wakeup source as inactive.
690691
* @ws: Wakeup source to handle.
691692
*
692693
* Update the @ws' statistics and notify the PM core that the wakeup source has
@@ -785,7 +786,7 @@ EXPORT_SYMBOL_GPL(pm_relax);
785786

786787
/**
787788
* pm_wakeup_timer_fn - Delayed finalization of a wakeup event.
788-
* @data: Address of the wakeup source object associated with the event source.
789+
* @t: timer list
789790
*
790791
* Call wakeup_source_deactivate() for the wakeup source whose address is stored
791792
* in @data if it is currently active and its timer has not been canceled and
@@ -1021,7 +1022,7 @@ bool pm_save_wakeup_count(unsigned int count)
10211022
#ifdef CONFIG_PM_AUTOSLEEP
10221023
/**
10231024
* pm_wakep_autosleep_enabled - Modify autosleep_enabled for all wakeup sources.
1024-
* @enabled: Whether to set or to clear the autosleep_enabled flags.
1025+
* @set: Whether to set or to clear the autosleep_enabled flags.
10251026
*/
10261027
void pm_wakep_autosleep_enabled(bool set)
10271028
{

0 commit comments

Comments
 (0)