]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/reboot-mode.h
mod_devicetable: fix PHY module format
[mirror_ubuntu-bionic-kernel.git] / include / linux / reboot-mode.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
4fcd504e
AY
2#ifndef __REBOOT_MODE_H__
3#define __REBOOT_MODE_H__
4
5struct 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
12int reboot_mode_register(struct reboot_mode_driver *reboot);
13int reboot_mode_unregister(struct reboot_mode_driver *reboot);
c1a9634f
BA
14int devm_reboot_mode_register(struct device *dev,
15 struct reboot_mode_driver *reboot);
16void devm_reboot_mode_unregister(struct device *dev,
17 struct reboot_mode_driver *reboot);
4fcd504e
AY
18
19#endif