spidev: use DECLARE_BITMAP instead of declaring the array

[[email protected]: coding-style fixes]
Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
Thadeu Lima de Souza Cascardo 2009-12-14 14:20:23 -08:00 • committed by Grant Likely
commit 8ae1c92480

View 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