All of lore.kernel.org
 help / color / mirror / Atom feed
* + spidev-use-declare_bitmap-instead-of-declaring-the-array.patch added to -mm tree
@ 2009-11-09 20:26 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2009-11-09 20:26 UTC (permalink / raw)
  To: mm-commits; +Cc: cascardo, dbrownell


The patch titled
     spidev: use DECLARE_BITMAP instead of declaring the array
has been added to the -mm tree.  Its filename is
     spidev-use-declare_bitmap-instead-of-declaring-the-array.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: spidev: use DECLARE_BITMAP instead of declaring the array
From: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>

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


diff -puN drivers/spi/spidev.c~spidev-use-declare_bitmap-instead-of-declaring-the-array drivers/spi/spidev.c
--- a/drivers/spi/spidev.c~spidev-use-declare_bitmap-instead-of-declaring-the-array
+++ a/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
_

Patches currently in -mm which might be from cascardo@holoscopio.com are

linux-next.patch
cmpc_acpi-add-support-for-classmate-pc-acpi-devices.patch
cmpc_acpi-add-support-for-classmate-pc-acpi-devices-fix.patch
cmpc_acpi-add-support-for-classmate-pc-acpi-devices-depends-on-acpi.patch
spidev-use-declare_bitmap-instead-of-declaring-the-array.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-09 20:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-09 20:26 + spidev-use-declare_bitmap-instead-of-declaring-the-array.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.