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)
commit0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2
tree4240e27149c844f61cc718dd0458d400ecd33847
parent59835ad727876f6ce5c18ce075e144a8fa989461
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