1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

spi: Add SPIBUS_PNP_INFO macro

The PNP info string is the same as the SIMPLEBUS one but driver should
depend on spibus and not simplebus
This commit is contained in:
Emmanuel Vadot 2018-06-14 17:20:47 +00:00
parent ba03ef5e21
commit 64b507e5fe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335158

View File

@ -40,3 +40,7 @@ struct spi_command {
#define SPI_COMMAND_INITIALIZER { 0 }
#define SPI_CHIP_SELECT_HIGH 0x1 /* Chip select high (else low) */
#define SPIBUS_PNP_DESCR "Z:compat;P:#;"
#define SPIBUS_PNP_INFO(t) \
MODULE_PNP_INFO(SPIBUS_PNP_DESCR, spibus, t, t, sizeof(t[0]), sizeof(t) / sizeof(t[0]));