@@ -147,7 +147,11 @@ extern int spi_delay_exec(struct spi_delay *_delay, struct spi_transfer *xfer);
147
147
* not using a GPIO line)
148
148
* @word_delay: delay to be inserted between consecutive
149
149
* words of a transfer
150
- *
150
+ * @cs_setup: delay to be introduced by the controller after CS is asserted
151
+ * @cs_hold: delay to be introduced by the controller before CS is deasserted
152
+ * @cs_inactive: delay to be introduced by the controller after CS is
153
+ * deasserted. If @cs_change_delay is used from @spi_transfer, then the
154
+ * two delays will be added up.
151
155
* @statistics: statistics for the spi_device
152
156
*
153
157
* A @spi_device is used to interchange data between an SPI slave
@@ -188,6 +192,10 @@ struct spi_device {
188
192
int cs_gpio ; /* LEGACY: chip select gpio */
189
193
struct gpio_desc * cs_gpiod ; /* chip select gpio desc */
190
194
struct spi_delay word_delay ; /* inter-word delay */
195
+ /* CS delays */
196
+ struct spi_delay cs_setup ;
197
+ struct spi_delay cs_hold ;
198
+ struct spi_delay cs_inactive ;
191
199
192
200
/* the statistics */
193
201
struct spi_statistics statistics ;
@@ -413,11 +421,6 @@ extern struct spi_device *spi_new_ancillary_device(struct spi_device *spi, u8 ch
413
421
* controller has native support for memory like operations.
414
422
* @unprepare_message: undo any work done by prepare_message().
415
423
* @slave_abort: abort the ongoing transfer request on an SPI slave controller
416
- * @cs_setup: delay to be introduced by the controller after CS is asserted
417
- * @cs_hold: delay to be introduced by the controller before CS is deasserted
418
- * @cs_inactive: delay to be introduced by the controller after CS is
419
- * deasserted. If @cs_change_delay is used from @spi_transfer, then the
420
- * two delays will be added up.
421
424
* @cs_gpios: LEGACY: array of GPIO descs to use as chip select lines; one per
422
425
* CS number. Any individual value may be -ENOENT for CS lines that
423
426
* are not GPIOs (driven by the SPI controller itself). Use the cs_gpiods
@@ -639,11 +642,6 @@ struct spi_controller {
639
642
/* Optimized handlers for SPI memory-like operations. */
640
643
const struct spi_controller_mem_ops * mem_ops ;
641
644
642
- /* CS delays */
643
- struct spi_delay cs_setup ;
644
- struct spi_delay cs_hold ;
645
- struct spi_delay cs_inactive ;
646
-
647
645
/* gpio chip select */
648
646
int * cs_gpios ;
649
647
struct gpio_desc * * cs_gpiods ;
0 commit comments