Skip to contentSkip to conversation

spidev: use DECLARE_BITMAP instead of declaring the array

PATCH Applied Thadeu Lima de Souza Cascardo 1 participant 1 message Oct 22, 2009 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 spidev: use DECLARE_BITMAP instead of declaring the array

---
 drivers/spi/spidev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/spi/spidev.c +1 -1
index d9b4100..10fc42f 100644
@@ -54,7 +54,7 @@
 #define SPIDEV_MAJOR			153	/* assigned */
 #define N_SPI_MINORS			32	/* ... up to 256 */
 
-static unsigned long	minors[N_SPI_MINORS / BITS_PER_LONG];
+static DECLARE_BITMAP(minors,N_SPI_MINORS);
 
 
 /* Bit masks for spi_device.mode management.  Note that incorrect
Signature · 1 line
1.6.3.3