]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
spidev: use DECLARE_BITMAP instead of declaring the array
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Mon, 14 Dec 2009 22:20:23 +0000 (14:20 -0800)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 17 Dec 2009 15:39:12 +0000 (08:39 -0700)
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spidev.c

index f8279e783617fc76aadce1b9f3001ac4eeccfc9d..cb7147e0a573989fa2f1d1a73155eb808aece66c 100644 (file)
@@ -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