diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-12-24 00:10:15 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-01-21 22:52:46 +0400 |
commit | 0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 (patch) | |
tree | 4240e27149c844f61cc718dd0458d400ecd33847 /include/linux/usb/composite.h | |
parent | 59835ad727876f6ce5c18ce075e144a8fa989461 (diff) | |
download | linux-0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2.tar.xz |
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/linux/usb/composite.h')
-rw-r--r-- | include/linux/usb/composite.h | 1 |
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 *); |