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

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]));