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-06-28 09:47:06 +1000 |
commit | 838c242110497a69b67d5ff63141ae56d7589db7 (patch) | |
tree | 5093ca0f2ad81305c2ad396d96228edbf5bb2ed6 /drivers/staging/vt6655/upc.h | |
parent | fec4672c941f1c371717b2592448e71e3504f719 (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/vt6655/upc.h')
0 files changed, 0 insertions, 0 deletions