summaryrefslogtreecommitdiff
path: root/drivers/power/reset/reboot-mode.h
blob: 2491bb71f5911ed39c78391ce439a600c0d17361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __REBOOT_MODE_H__
#define __REBOOT_MODE_H__

struct reboot_mode_driver {
	struct device *dev;
	struct list_head head;
	int (*write)(struct reboot_mode_driver *reboot, unsigned int magic);
	struct notifier_block reboot_notifier;
};

int reboot_mode_register(struct reboot_mode_driver *reboot);
int reboot_mode_unregister(struct reboot_mode_driver *reboot);

#endif