#ifndef _LINUX_CHROMEOS_PLATFORM_H
#define _LINUX_CHROMEOS_PLATFORM_H
+#include <linux/errno.h>
#include <linux/types.h>
#ifdef CONFIG_CHROMEOS
* and per-platform firmware interfaces.
*/
-/* Checks to see if the current device is in devmode */
-extern bool chromeos_is_devmode(void);
-
/*
* Set the taint bit telling firmware that the currently running side needs
* recovery (or reinstall).
*/
extern int chromeos_set_need_recovery(void);
+extern int chromeos_set_dev_usb(void);
#else
-/* Stubbed-out versions so we can keep code common */
-static inline bool chromeos_is_devmode(void)
+
+static inline int chromeos_set_need_recovery(void)
{
- return true;
+ return -ENODEV;
}
-static inline int chromeos_set_need_recovery(void)
+static inline int chromeos_set_dev_usb(void)
{
return -ENODEV;
}