PM: Rename hibernation_ops to platform_hibernation_ops
Rename 'struct hibernation_ops' to 'struct platform_hibernation_ops' in analogy with 'struct platform_suspend_ops'. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Cc: Len Brown <lenb@kernel.org> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
74f270af0c
commit
b3dac3b304
+2
-2
@@ -45,14 +45,14 @@ enum {
|
||||
|
||||
static int hibernation_mode = HIBERNATION_SHUTDOWN;
|
||||
|
||||
static struct hibernation_ops *hibernation_ops;
|
||||
static struct platform_hibernation_ops *hibernation_ops;
|
||||
|
||||
/**
|
||||
* hibernation_set_ops - set the global hibernate operations
|
||||
* @ops: the hibernation operations to use in subsequent hibernation transitions
|
||||
*/
|
||||
|
||||
void hibernation_set_ops(struct hibernation_ops *ops)
|
||||
void hibernation_set_ops(struct platform_hibernation_ops *ops)
|
||||
{
|
||||
if (ops && !(ops->start && ops->pre_snapshot && ops->finish
|
||||
&& ops->prepare && ops->enter && ops->pre_restore
|
||||
|
||||
Reference in New Issue
Block a user