android_kernel_samsung_a7y1.../include/linux/state_notifier.h
Pranav Vashi 5f79239f13 samsung: Add state notifier driver
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Luca Grifo <lg@linux.com>
Signed-off-by: djb77 <dwayne.bakewell@gmail.com>
2020-04-08 12:42:14 +02:00

21 lines
509 B
C

#ifndef __LINUX_STATE_NOTIFIER_H
#define __LINUX_STATE_NOTIFIER_H
#include <linux/notifier.h>
#define STATE_NOTIFIER_ACTIVE 0x01
#define STATE_NOTIFIER_SUSPEND 0x02
struct state_event {
void *data;
};
extern bool state_suspended;
extern void state_suspend(void);
extern void state_resume(void);
int state_register_client(struct notifier_block *nb);
int state_unregister_client(struct notifier_block *nb);
int state_notifier_call_chain(unsigned long val, void *v);
#endif /* _LINUX_STATE_NOTIFIER_H */