]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: printer: don't access file global pnp_string in function's code
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Tue, 3 Mar 2015 09:52:17 +0000 (10:52 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Mar 2015 20:33:37 +0000 (15:33 -0500)
commit8ddd48a18933166825b73e9334821fa774356f27
tree1848b133ecbc5f2791566f30076691f0b0c309bc
parent91d7007c4afce8c7427c9f07210d1a05e177ca7c
usb: gadget: printer: don't access file global pnp_string in function's code

In order to factor out a reusable f_printer, the function's code should
not use file global variables related to legacy printer gadget's
implementation.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/legacy/printer.c