]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: add a forward pointer from usb_function to its "instance"
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Sun, 23 Dec 2012 20:10:15 +0000 (21:10 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 21 Jan 2013 18:52:46 +0000 (20:52 +0200)
commitc74896059b25f93129e2ef2a20e77aa25279c8e8
tree4240e27149c844f61cc718dd0458d400ecd33847
parentd336f0f9f40a468bbf495aea52d08ae71e321720
usb: gadget: add a forward pointer from usb_function to its "instance"

We can have multiple usb_functions which origin is the same "instance".
Within one USB configuration there should be only one function of an
instance. This back pointer helps configfs to recoginze to which
instance a given usb_function belongs.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/functions.c [new file with mode: 0644]
include/linux/usb/composite.h