Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Andy Yan | 4fcd504 | 2016-07-06 21:27:26 +0800 | [diff] [blame] | 2 | #ifndef __REBOOT_MODE_H__ |
| 3 | #define __REBOOT_MODE_H__ |
| 4 | |
| 5 | struct reboot_mode_driver { |
| 6 | struct device *dev; |
| 7 | struct list_head head; |
| 8 | int (*write)(struct reboot_mode_driver *reboot, unsigned int magic); |
| 9 | struct notifier_block reboot_notifier; |
| 10 | }; |
| 11 | |
| 12 | int reboot_mode_register(struct reboot_mode_driver *reboot); |
| 13 | int reboot_mode_unregister(struct reboot_mode_driver *reboot); |
Bjorn Andersson | c1a9634 | 2016-08-03 22:04:05 -0700 | [diff] [blame] | 14 | int devm_reboot_mode_register(struct device *dev, |
| 15 | struct reboot_mode_driver *reboot); |
| 16 | void devm_reboot_mode_unregister(struct device *dev, |
| 17 | struct reboot_mode_driver *reboot); |
Andy Yan | 4fcd504 | 2016-07-06 21:27:26 +0800 | [diff] [blame] | 18 | |
| 19 | #endif |