diff options
Diffstat (limited to 'drivers/spi/spi-dw.h')
-rw-r--r-- | drivers/spi/spi-dw.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/spi/spi-dw.h b/drivers/spi/spi-dw.h index 9c57c078031e..587643dae11e 100644 --- a/drivers/spi/spi-dw.h +++ b/drivers/spi/spi-dw.h | |||
@@ -92,13 +92,11 @@ struct dw_spi_dma_ops { | |||
92 | struct dw_spi { | 92 | struct dw_spi { |
93 | struct spi_master *master; | 93 | struct spi_master *master; |
94 | struct spi_device *cur_dev; | 94 | struct spi_device *cur_dev; |
95 | struct device *parent_dev; | ||
96 | enum dw_ssi_type type; | 95 | enum dw_ssi_type type; |
97 | char name[16]; | 96 | char name[16]; |
98 | 97 | ||
99 | void __iomem *regs; | 98 | void __iomem *regs; |
100 | unsigned long paddr; | 99 | unsigned long paddr; |
101 | u32 iolen; | ||
102 | int irq; | 100 | int irq; |
103 | u32 fifo_len; /* depth of the FIFO buffer */ | 101 | u32 fifo_len; /* depth of the FIFO buffer */ |
104 | u32 max_freq; /* max bus freq supported */ | 102 | u32 max_freq; /* max bus freq supported */ |
@@ -135,7 +133,6 @@ struct dw_spi { | |||
135 | u8 n_bytes; /* current is a 1/2 bytes op */ | 133 | u8 n_bytes; /* current is a 1/2 bytes op */ |
136 | u8 max_bits_per_word; /* maxim is 16b */ | 134 | u8 max_bits_per_word; /* maxim is 16b */ |
137 | u32 dma_width; | 135 | u32 dma_width; |
138 | int cs_change; | ||
139 | irqreturn_t (*transfer_handler)(struct dw_spi *dws); | 136 | irqreturn_t (*transfer_handler)(struct dw_spi *dws); |
140 | void (*cs_control)(u32 command); | 137 | void (*cs_control)(u32 command); |
141 | 138 | ||
@@ -231,7 +228,7 @@ struct dw_spi_chip { | |||
231 | void (*cs_control)(u32 command); | 228 | void (*cs_control)(u32 command); |
232 | }; | 229 | }; |
233 | 230 | ||
234 | extern int dw_spi_add_host(struct dw_spi *dws); | 231 | extern int dw_spi_add_host(struct device *dev, struct dw_spi *dws); |
235 | extern void dw_spi_remove_host(struct dw_spi *dws); | 232 | extern void dw_spi_remove_host(struct dw_spi *dws); |
236 | extern int dw_spi_suspend_host(struct dw_spi *dws); | 233 | extern int dw_spi_suspend_host(struct dw_spi *dws); |
237 | extern int dw_spi_resume_host(struct dw_spi *dws); | 234 | extern int dw_spi_resume_host(struct dw_spi *dws); |