summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/gpbridge.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2016-02-28 14:42:54 -0800
committerGreg Kroah-Hartman <gregkh@google.com>2016-03-03 13:52:02 -0800
commitc7b07265046b5db56778dc8c2cfc9056413ec5ba (patch)
treec9351cf4892a8aeecfdfdaf2110a4f36a631095c /drivers/staging/greybus/gpbridge.h
parent3522a09fa7df45b49c27997b419a20d9dcff8919 (diff)
greybus: gpbridge.h: move protocol init/exit prototypes
Create gpbridge.h for the gpbridge-specific function prototypes, the rest of the greybus drivers don't care about them. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Diffstat (limited to 'drivers/staging/greybus/gpbridge.h')
-rw-r--r--drivers/staging/greybus/gpbridge.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/staging/greybus/gpbridge.h b/drivers/staging/greybus/gpbridge.h
new file mode 100644
index 000000000000..50ee87b8f737
--- /dev/null
+++ b/drivers/staging/greybus/gpbridge.h
@@ -0,0 +1,34 @@
+/*
+ * Greybus GPBridge phy driver
+ *
+ * Copyright 2016 Google Inc.
+ *
+ * Released under the GPLv2 only.
+ */
+
+#ifndef __GPBRIDGE_H
+#define __GPBRIDGE_H
+
+extern int gb_gpio_protocol_init(void);
+extern void gb_gpio_protocol_exit(void);
+
+extern int gb_pwm_protocol_init(void);
+extern void gb_pwm_protocol_exit(void);
+
+extern int gb_uart_protocol_init(void);
+extern void gb_uart_protocol_exit(void);
+
+extern int gb_sdio_protocol_init(void);
+extern void gb_sdio_protocol_exit(void);
+
+extern int gb_usb_protocol_init(void);
+extern void gb_usb_protocol_exit(void);
+
+extern int gb_i2c_protocol_init(void);
+extern void gb_i2c_protocol_exit(void);
+
+extern int gb_spi_protocol_init(void);
+extern void gb_spi_protocol_exit(void);
+
+#endif /* __GPBRIDGE_H */
+