Author: manu
Date: Thu Jun 14 17:20:47 2018
New Revision: 335158
URL: https://svnweb.freebsd.org/changeset/base/335158

Log:
  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

Modified:
  head/sys/dev/spibus/spi.h

Modified: head/sys/dev/spibus/spi.h
==============================================================================
--- head/sys/dev/spibus/spi.h   Thu Jun 14 17:19:44 2018        (r335157)
+++ head/sys/dev/spibus/spi.h   Thu Jun 14 17:20:47 2018        (r335158)
@@ -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]));
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to