From: Andrzej Pietrasiewicz Date: Tue, 3 Mar 2015 09:52:25 +0000 (+0100) Subject: usb: gadget: printer: add req_match for printer function X-Git-Tag: omap-for-v4.1/fixes-rc1~167^2~55^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=636bc0ed271d996e18365345e9c00fc712edc610;p=pandora-kernel.git usb: gadget: printer: add req_match for printer function Verify that a given usb_ctrlrequest is meant for printer function. The following parts of the request are tested: - bmRequestType:Data transfer direction - bmRequestType:Type - bmRequestType:Recipient - bRequest - wValue for bRequest 1 and 2 - wLength Additionally, the request is considered meant for this function iff the decoded interface number matches dev->interface. Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed