From: Sebastian Andrzej Siewior Date: Sat, 25 Feb 2012 17:28:10 +0000 (+0100) Subject: usb/storage: redefine US_BULK_FLAG_IN and use it X-Git-Tag: v3.4-rc1~184^2~22^2~89 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8db6d6402ddca1c78a27407fbd10a6ccb23ab14;p=pandora-kernel.git usb/storage: redefine US_BULK_FLAG_IN and use it US_BULK_FLAG_IN is defined as 1 and not used. The USB storage spec says that bit 7 of flags within CBW defines the data direction. 1 is DATA-IN (read from device) and 0 is the DATA-OUT. Bit 6 is obselete and bits 0-5 are reserved. This patch redefines the unsued define US_BULK_FLAG_IN from 1 to 1 << 7 aka 0x80 and replaces the obvious users. In a following patch the storage gadget will use it as well. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed