diff options
author | Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com> | 2009-12-14 14:20:23 -0800 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-12-17 08:39:12 -0700 |
commit | 8ae1c9248042c5122f9628282f41c363c9610dd7 (patch) | |
tree | 03c086fda38b02f0e19d133fe0a0f7a316a51438 /drivers/spi | |
parent | 965346e3b99e2c5f51bd1325ddd0257227000355 (diff) | |
download | kernel_samsung_crespo-8ae1c9248042c5122f9628282f41c363c9610dd7.zip kernel_samsung_crespo-8ae1c9248042c5122f9628282f41c363c9610dd7.tar.gz kernel_samsung_crespo-8ae1c9248042c5122f9628282f41c363c9610dd7.tar.bz2 |
spidev: use DECLARE_BITMAP instead of declaring the array
[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>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spidev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index f8279e7..cb7147e 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -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 |