diff options
author | Michal Nazarewicz <m.nazarewicz@samsung.com> | 2010-06-25 16:29:27 +0200 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2010-07-05 08:41:39 +1000 |
commit | 7ab331186f7aff23d5238947c0e540ad0f43edea (patch) | |
tree | 784c4a1b61a94e5f37eed1e1cf677edf9a89a8e0 /drivers/staging/tidspbridge/rmgr/drv.c | |
parent | e4ad13c20104ea110b27be853fda5858990835d7 (diff) |
USB: gadget: g_fs: code cleanup
This commit cleans the g_fs gadget hopefully making it more
readable. This is achieved by usage of the usb_string_ids_tab()
function for batch string IDs registration as well as
generalising configuration so that a single routine is
used to add each configuration and bind interfaces. As an
effect, the code is shorter and has fewer #ifdefs.
Moreover, in some circumstances previous code #defined
CONFIG_USB_FUNCTIONFS_GENERIC macro to prevent a situation
where gadget with no configurations is built. This code removes
the #define form source code and achieves the same effect using
select in Kconfig.
This patch also changes wording and names of the Kconfig options.
Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/tidspbridge/rmgr/drv.c')
0 files changed, 0 insertions, 0 deletions