set dev usb
[cascardo/linux.git] / include / linux / chromeos_platform.h
index d44abd4..c02e5fd 100644 (file)
@@ -1,6 +1,7 @@
 #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;
 }