From: Felipe Balbi <[email protected]>

no-one else besides cbus.c wants to deal with
struct cbus_host, so move the definition to
the C source interested in it.

Signed-off-by: Felipe Balbi <[email protected]>
---
 drivers/cbus/cbus.c |    9 +++++++++
 drivers/cbus/cbus.h |    9 ---------
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/cbus/cbus.c b/drivers/cbus/cbus.c
index c219d54..285bf23 100644
--- a/drivers/cbus/cbus.c
+++ b/drivers/cbus/cbus.c
@@ -45,6 +45,15 @@
 #define CBUS_XFER_READ         1
 #define CBUS_XFER_WRITE                0
 
+struct cbus_host {
+       /* host lock */
+       spinlock_t lock;
+
+       int     clk_gpio;
+       int     dat_gpio;
+       int     sel_gpio;
+};
+
 static struct cbus_host *cbus_host;
 
 static void cbus_send_bit(struct cbus_host *host, int bit, int set_to_input)
diff --git a/drivers/cbus/cbus.h b/drivers/cbus/cbus.h
index 62f1874..d53bb70 100644
--- a/drivers/cbus/cbus.h
+++ b/drivers/cbus/cbus.h
@@ -23,15 +23,6 @@
 #ifndef __DRIVERS_CBUS_CBUS_H
 #define __DRIVERS_CBUS_CBUS_H
 
-struct cbus_host {
-       /* host lock */
-       spinlock_t lock;
-
-       int     clk_gpio;
-       int     dat_gpio;
-       int     sel_gpio;
-};
-
 extern int cbus_read_reg(unsigned dev, unsigned reg);
 extern int cbus_write_reg(unsigned dev, unsigned reg, unsigned val);
 
-- 
1.7.0.rc0.33.g7c3932

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to