]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: printer: add container_of helper for printer_dev
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Tue, 3 Mar 2015 09:52:22 +0000 (10:52 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Mar 2015 20:33:38 +0000 (15:33 -0500)
commit97bec66cb75c223e47da210d02b2c2a9e669c2ac
tree9c63564a5b942dd002e4cdb8762aee275e4dc8b7
parentea4e56487db8330d8a9d50e47a784a1f051d660f
usb: gadget: printer: add container_of helper for printer_dev

5 uses of container_of() in the same context justify wrapping it
in a static inline function.

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