@@ -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)
@@ -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);