This is meant for 3.21. 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 short series eliminates the limit. The first patch prepares the conversion proper by changing the way each struct rndis_params instance is referenced throughout the API: instead of an index into some array a pointer to actual instance is passed around. The second patch is a small style correction and the third does the conversion proper by changing the way instances of struct rndis_params are allocated: instead of a predefined array they are now allocated on demand. Rebased onto Felipe's testing/next. Andrzej Pietrasiewicz (3): usb: gadget: rndis: use rndis_params instead of configNr usb: gadget: rndis: style correction usb: gadget: rndis: remove the limit of available rndis connections Documentation/usb/gadget-testing.txt | 2 - drivers/usb/gadget/function/f_rndis.c | 60 ++---- drivers/usb/gadget/function/rndis.c | 347 +++++++++++++++++----------------- drivers/usb/gadget/function/rndis.h | 31 +-- drivers/usb/gadget/function/u_rndis.h | 2 - 5 files changed, 205 insertions(+), 237 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html