--- zzzz-none-000/linux-3.10.107/include/linux/spi/spi_bitbang.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/include/linux/spi/spi_bitbang.h 2021-02-04 17:41:59.000000000 +0000 @@ -4,11 +4,7 @@ #include struct spi_bitbang { - struct workqueue_struct *workqueue; - struct work_struct work; - - spinlock_t lock; - struct list_head queue; + struct mutex lock; u8 busy; u8 use_dma; u8 flags; /* extra spi->mode support */ @@ -41,12 +37,12 @@ */ extern int spi_bitbang_setup(struct spi_device *spi); extern void spi_bitbang_cleanup(struct spi_device *spi); -extern int spi_bitbang_transfer(struct spi_device *spi, struct spi_message *m); extern int spi_bitbang_setup_transfer(struct spi_device *spi, struct spi_transfer *t); +extern int spi_bitbang_bufs(struct spi_device *spi, struct spi_transfer *t); /* start or stop queue processing */ extern int spi_bitbang_start(struct spi_bitbang *spi); -extern int spi_bitbang_stop(struct spi_bitbang *spi); +extern void spi_bitbang_stop(struct spi_bitbang *spi); #endif /* __SPI_BITBANG_H */