History

spi: bitbang: Introduce spi_bitbang_init()

Move all of the code doing struct spi_bitbang initialization, so that it can be paired with devm_spi_register_master() in order to avoid having to call spi_bitbang_stop() explicitly.

Andrey Smirnov committed 7 years ago

Commit 45beec31 parent 8b797492 files · +40 −27Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/spi/spi_bitbang.h+1−0
@@ -44,6 +44,7 @@ extern int spi_bitbang_setup_transfer(struct spi_device *spi, · 43 unmodified lines
44 44
45/* start or stop queue processing */45/* start or stop queue processing */
46extern int spi_bitbang_start(struct spi_bitbang *spi);46extern int spi_bitbang_start(struct spi_bitbang *spi);
47extern int spi_bitbang_init(struct spi_bitbang *spi);
47extern void spi_bitbang_stop(struct spi_bitbang *spi);48extern void spi_bitbang_stop(struct spi_bitbang *spi);
48 49
49#endif /* __SPI_BITBANG_H */50#endif /* __SPI_BITBANG_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t