@@ -498,7 +498,6 @@ extern struct spi_device *spi_new_ancillary_device(struct spi_device *spi, u8 ch
498
498
* controller has native support for memory like operations.
499
499
* @mem_caps: controller capabilities for the handling of memory operations.
500
500
* @unprepare_message: undo any work done by prepare_message().
501
- * @slave_abort: abort the ongoing transfer request on an SPI slave controller
502
501
* @target_abort: abort the ongoing transfer request on an SPI target controller
503
502
* @cs_gpiods: Array of GPIO descriptors to use as chip select lines; one per CS
504
503
* number. Any individual value may be NULL for CS lines that
@@ -725,10 +724,7 @@ struct spi_controller {
725
724
struct spi_message * message );
726
725
int (* unprepare_message )(struct spi_controller * ctlr ,
727
726
struct spi_message * message );
728
- union {
729
- int (* slave_abort )(struct spi_controller * ctlr );
730
- int (* target_abort )(struct spi_controller * ctlr );
731
- };
727
+ int (* target_abort )(struct spi_controller * ctlr );
732
728
733
729
/*
734
730
* These hooks are for drivers that use a generic implementation
@@ -802,11 +798,6 @@ static inline void spi_controller_put(struct spi_controller *ctlr)
802
798
put_device (& ctlr -> dev );
803
799
}
804
800
805
- static inline bool spi_controller_is_slave (struct spi_controller * ctlr )
806
- {
807
- return IS_ENABLED (CONFIG_SPI_SLAVE ) && ctlr -> slave ;
808
- }
809
-
810
801
static inline bool spi_controller_is_target (struct spi_controller * ctlr )
811
802
{
812
803
return IS_ENABLED (CONFIG_SPI_SLAVE ) && ctlr -> target ;
@@ -1296,7 +1287,6 @@ extern int devm_spi_optimize_message(struct device *dev, struct spi_device *spi,
1296
1287
1297
1288
extern int spi_setup (struct spi_device * spi );
1298
1289
extern int spi_async (struct spi_device * spi , struct spi_message * message );
1299
- extern int spi_slave_abort (struct spi_device * spi );
1300
1290
extern int spi_target_abort (struct spi_device * spi );
1301
1291
1302
1292
static inline size_t
0 commit comments