summaryrefslogtreecommitdiff
path: root/drivers/usb/core/hcd-pci.c
diff options
context:
space:
mode:
authorMichal Nazarewicz <m.nazarewicz@samsung.com>2010-06-25 18:29:27 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-11 01:35:37 +0400
commitf8dae531ec78ed34f8a845e5f4ff75f0adeb6b13 (patch)
tree6b51e0cb760b11887d1b16be6f964e9258c95122 /drivers/usb/core/hcd-pci.c
parent541c7d432f76771079e7c295d596ea47cc6a3030 (diff)
downloadlinux-f8dae531ec78ed34f8a845e5f4ff75f0adeb6b13.tar.xz
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/usb/core/hcd-pci.c')
0 files changed, 0 insertions, 0 deletions