PM / Sleep: Add more wakeup source initialization routines
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 21 Feb 2012 22:47:56 +0000 (23:47 +0100)
committerArve Hjønnevåg <arve@android.com>
Sat, 17 Mar 2012 01:10:27 +0000 (18:10 -0700)
commitd916481e7a1603ae5aec6350d089343e9bc70fcc
tree2b864626a3eb31e3b652bdb40edbcad928cc76c3
parentdd84d8514db926fc84a2332ebf5f254cf46fe740
PM / Sleep: Add more wakeup source initialization routines

The existing wakeup source initialization routines are not
particularly useful for wakeup sources that aren't created by
wakeup_source_create(), because their users have to open code
filling the objects with zeros and setting their names.  For this
reason, introduce routines that can be used for initializing, for
example, static wakeup source objects.

Requested-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/wakeup.c
include/linux/pm_wakeup.h