blob: 75f7fe5c881f0711051ba3385c2ac294d48903dc [file] [log] [blame]
Andy Yan4fcd5042016-07-06 21:27:26 +08001#ifndef __REBOOT_MODE_H__
2#define __REBOOT_MODE_H__
3
4struct reboot_mode_driver {
5 struct device *dev;
6 struct list_head head;
7 int (*write)(struct reboot_mode_driver *reboot, unsigned int magic);
8 struct notifier_block reboot_notifier;
9};
10
11int reboot_mode_register(struct reboot_mode_driver *reboot);
12int reboot_mode_unregister(struct reboot_mode_driver *reboot);
Bjorn Anderssonc1a96342016-08-03 22:04:05 -070013int devm_reboot_mode_register(struct device *dev,
14 struct reboot_mode_driver *reboot);
15void devm_reboot_mode_unregister(struct device *dev,
16 struct reboot_mode_driver *reboot);
Andy Yan4fcd5042016-07-06 21:27:26 +080017
18#endif