remarkable-linux/drivers/usb/gadget
Andrzej Pietrasiewicz d6d22922d9 usb: gadget: rndis: remove the limit of available rndis connections
RNDIS function has a limitation on the number of allowed instances.
So far it has been RNDIS_MAX_CONFIGS, which happens to be one.
In order to eliminate this kind of arbitrary limitation we should not
preallocate a predefined (RNDIS_MAX_CONFIGS) array of struct rndis_params
instances but instead allow allocating them on demand.

This patch allocates struct rndis_params on demand in rndis_register().
Coversly, the structure is free()'d in rndis_deregister().
If CONFIG_USB_GADGET_DEBUG_FILES is set, the proc files are created which
is the same behaviour as before, but the moment of creation is delayed
until struct rndis_params is actually allocated.

rnids_init() and rndis_exit() have nothing to do, so they are eliminated.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-05-07 13:47:17 -05:00
..
function usb: gadget: rndis: remove the limit of available rndis connections 2015-05-07 13:47:17 -05:00
legacy Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2015-04-26 17:22:07 -07:00
udc usb: gadget: s3c2410_udc: Remove static char buffer, use vsprintf extension %pV 2015-05-07 13:37:41 -05:00
composite.c usb: gadget: Fix typo fond in Documentation/Docbook/gadget.xml 2015-03-11 10:19:35 -05:00
config.c
configfs.c usb: gadget: configfs: don't NUL-terminate (sub)compatible ids 2015-02-23 09:37:27 -06:00
configfs.h
epautoconf.c
functions.c
Kconfig usb: gadget: f_printer: fix dependencies 2015-03-24 11:35:21 -05:00
Makefile
u_f.c
u_f.h
u_os_desc.h
usbstring.c