linux/drivers/usb/gadget/function
Andrzej Pietrasiewicz 83210e59ee usb: gadget: rndis: use rndis_params instead of configNr
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 prepares the elimination of the said limit by converting all the
functions which accept rndis config number to accept a pointer to the
actual struct rndis_params. Consequently, rndis_register() returns
a pointer to a corresponding struct rndis_params instance. The pointer
is then always used by f_rndis.c instead of config number when it talks
to rndis.c API.

A nice side-effect of the changes is that many lines of code in rndis.c
become shorter and fit in 80 columns.

If a function prototype changes in rndis.h a style cleanup is made
at the same time, otherwise checkpatch complains that the patch
has style problems.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-05-07 13:46:54 -05:00
..
f_acm.c
f_ecm.c
f_eem.c
f_fs.c make new_sync_{read,write}() static 2015-04-11 22:29:40 -04:00
f_hid.c usb: gadget: f_hid: remove unnecessary usb_ep_dequeue() 2015-03-11 10:19:38 -05:00
f_loopback.c Revert "usb: gadget: zero: Add support for interrupt EP" 2015-03-11 10:00:05 -05:00
f_mass_storage.c usb: patches for v4.1 merge window 2015-03-24 22:57:49 +01:00
f_mass_storage.h
f_midi.c usb: gadget: fix misspelling of current function in string 2014-12-22 10:27:34 -06:00
f_ncm.c
f_obex.c
f_phonet.c usb: gadget: function: phonet: balance usb_ep_disable calls 2015-02-23 00:18:52 -06:00
f_printer.c usb: gadget: f_printer: use non-zero flag for bitwise and 2015-03-13 10:41:05 -05:00
f_rndis.c usb: gadget: rndis: use rndis_params instead of configNr 2015-05-07 13:46:54 -05:00
f_serial.c
f_sourcesink.c Revert "usb: gadget: zero: Add support for interrupt EP" 2015-03-11 10:00:05 -05:00
f_subset.c
f_uac1.c Linux 3.19-rc5 2015-01-19 09:57:20 -06:00
f_uac2.c usb: gadget: function: f_uac2: fix sparse warnings 2015-02-23 09:21:28 -06:00
f_uvc.c [media] gadget/uvc: embed video_device 2015-04-02 23:36:20 -03:00
f_uvc.h
g_zero.h Revert "usb: gadget: zero: Add support for interrupt EP" 2015-03-11 10:00:05 -05:00
Makefile usb: gadget: f_printer: convert to new function interface with backward compatibility 2015-03-10 15:33:40 -05:00
ndis.h
rndis.c usb: gadget: rndis: use rndis_params instead of configNr 2015-05-07 13:46:54 -05:00
rndis.h usb: gadget: rndis: use rndis_params instead of configNr 2015-05-07 13:46:54 -05:00
storage_common.c
storage_common.h
u_ecm.h
u_eem.h
u_ether_configfs.h
u_ether.c usb: gadget: ethernet: re-use %pM specifier to print MAC 2015-01-19 12:53:32 -06:00
u_ether.h
u_fs.h usb: gadget: ffs: add eventfd notification about ffs events 2015-01-27 09:34:59 -06:00
u_gether.h
u_hid.h usb: gadget: hid: add configfs support 2014-11-06 16:18:19 -06:00
u_midi.h
u_ncm.h
u_phonet.h
u_printer.h usb: gadget: printer: add configfs support 2015-03-10 15:33:41 -05:00
u_rndis.h
u_serial.c usb: gadget: serial: %pf is only for function pointers 2015-03-13 10:37:30 -05:00
u_serial.h
u_uac1.c usb: gadget: u_uac1: fix one code style problem 2015-01-15 09:41:48 -06:00
u_uac1.h usb: gadget: uac1: struct gaudio is useless for struct f_uac1_opts 2015-01-15 09:41:48 -06:00
u_uac2.h
u_uvc.h usb: gadget: uvc: configfs support in uvc function 2015-01-12 12:13:26 -06:00
uvc_configfs.c usb: gadget: uvc: comments for iterating over streaming hierarchy 2015-01-27 10:00:27 -06:00
uvc_configfs.h usb: gadget: uvc: configfs support in uvc function 2015-01-12 12:13:26 -06:00
uvc_queue.c [media] uvc gadget: switch to v4l2 core locking 2015-03-02 17:05:23 -03:00
uvc_queue.h [media] uvc gadget: switch to v4l2 core locking 2015-03-02 17:05:23 -03:00
uvc_v4l2.c Merge branch 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux into v4l_for_linus 2015-04-21 09:44:55 -03:00
uvc_v4l2.h
uvc_video.c Merge branch 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux into v4l_for_linus 2015-04-21 09:44:55 -03:00
uvc_video.h
uvc.h usb: gadget: uvc: remove unused including <linux/version.h> 2015-04-27 15:48:11 -05:00