summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2012-12-23 21:10:15 +0100
committerFelipe Balbi <balbi@ti.com>2013-01-21 20:52:46 +0200
commit0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 (patch)
tree4240e27149c844f61cc718dd0458d400ecd33847 /include
parent59835ad727876f6ce5c18ce075e144a8fa989461 (diff)
downloadlinux-stable-0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2.tar.gz
linux-stable-0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2.tar.bz2
linux-stable-0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/composite.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h
index 8c7a6295ae78..771de7acf8dd 100644
--- a/include/linux/usb/composite.h
+++ b/include/linux/usb/composite.h
@@ -161,6 +161,7 @@ struct usb_function {
/* internals */
struct list_head list;
DECLARE_BITMAP(endpoints, 32);
+ const struct usb_function_instance *fi;
};
int usb_add_function(struct usb_configuration *, struct usb_function *);