]> err.no Git - linux-2.6/commit
usb-storage: separate dynamic flags from fixed flags
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 1 May 2008 19:35:18 +0000 (15:35 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Jul 2008 22:15:53 +0000 (15:15 -0700)
commit7e4d6c387994294ac8198b624ee71e75de60dfd2
tree09c8c519a6284f79c38f49347eb7fdf44d8de13e
parent2742fd8899328345d97a3443fb787b051b79ebae
usb-storage: separate dynamic flags from fixed flags

This patch (as1089) separates out the dynamic atomic bitflags and the
static bitfields in usb-storage.  Until now the two sorts of flags
have been sharing the same word; this has always been awkward.

To help prevent possible confusion, the two new fields each have a
different name from the original.  us->fflags contains the fixed
bitfields (mostly taken from the USB ID table in unusual_devs.h), and
us->dflags contains the dynamic atomic bitflags (used with set_bit,
test_bit, and so on).

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/isd200.c
drivers/usb/storage/scsiglue.c
drivers/usb/storage/transport.c
drivers/usb/storage/usb.c
drivers/usb/storage/usb.h