Andy Yan | 4fcd504 | 2016-07-06 21:27:26 +0800 | [diff] [blame] | 1 | #ifndef __REBOOT_MODE_H__ |
| 2 | #define __REBOOT_MODE_H__ |
| 3 | |
| 4 | struct 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 | |
| 11 | int reboot_mode_register(struct reboot_mode_driver *reboot); |
| 12 | int reboot_mode_unregister(struct reboot_mode_driver *reboot); |
Bjorn Andersson | c1a9634 | 2016-08-03 22:04:05 -0700 | [diff] [blame] | 13 | int devm_reboot_mode_register(struct device *dev, |
| 14 | struct reboot_mode_driver *reboot); |
| 15 | void devm_reboot_mode_unregister(struct device *dev, |
| 16 | struct reboot_mode_driver *reboot); |
Andy Yan | 4fcd504 | 2016-07-06 21:27:26 +0800 | [diff] [blame] | 17 | |
| 18 | #endif |