Commit 6f085522 authored by Adrian Bunk's avatar Adrian Bunk Committed by Greg Kroah-Hartman

[PATCH] USB: misc USB gadget cleanups

On Tue, Nov 09, 2004 at 08:42:43AM -0800, Greg KH wrote:
> On Sun, Nov 07, 2004 at 03:20:39PM -0700, David Brownell wrote:
> > On Sunday 07 November 2004 13:30, Adrian Bunk wrote:
> > > The patch below makes some needlessly global USB gadget functions
> > > static.
> >
> > It looks fine except for the one config descriptor utility
> > (just strike those bits from the patch).  Those are exported
> > to support composite devices ... for "multi-function" devices.
>
> Care to send me a patch with the correct parts in it?  :)
>...


USB gadget: make 4 needlessly global functions static.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent f1d390a2
...@@ -3579,7 +3579,7 @@ static ssize_t show_file(struct device *dev, char *buf) ...@@ -3579,7 +3579,7 @@ static ssize_t show_file(struct device *dev, char *buf)
} }
ssize_t store_ro(struct device *dev, const char *buf, size_t count) static ssize_t store_ro(struct device *dev, const char *buf, size_t count)
{ {
ssize_t rc = count; ssize_t rc = count;
struct lun *curlun = dev_to_lun(dev); struct lun *curlun = dev_to_lun(dev);
...@@ -3603,7 +3603,7 @@ ssize_t store_ro(struct device *dev, const char *buf, size_t count) ...@@ -3603,7 +3603,7 @@ ssize_t store_ro(struct device *dev, const char *buf, size_t count)
return rc; return rc;
} }
ssize_t store_file(struct device *dev, const char *buf, size_t count) static ssize_t store_file(struct device *dev, const char *buf, size_t count)
{ {
struct lun *curlun = dev_to_lun(dev); struct lun *curlun = dev_to_lun(dev);
struct fsg_dev *fsg = (struct fsg_dev *) dev_get_drvdata(dev); struct fsg_dev *fsg = (struct fsg_dev *) dev_get_drvdata(dev);
......
...@@ -1275,7 +1275,7 @@ int rndis_rm_hdr (u8 *buf, u32 *length) ...@@ -1275,7 +1275,7 @@ int rndis_rm_hdr (u8 *buf, u32 *length)
#ifdef CONFIG_USB_GADGET_DEBUG_FILES #ifdef CONFIG_USB_GADGET_DEBUG_FILES
int rndis_proc_read (char *page, char **start, off_t off, int count, int *eof, static int rndis_proc_read (char *page, char **start, off_t off, int count, int *eof,
void *data) void *data)
{ {
char *out = page; char *out = page;
...@@ -1320,7 +1320,7 @@ int rndis_proc_read (char *page, char **start, off_t off, int count, int *eof, ...@@ -1320,7 +1320,7 @@ int rndis_proc_read (char *page, char **start, off_t off, int count, int *eof,
return len; return len;
} }
int rndis_proc_write (struct file *file, const char __user *buffer, static int rndis_proc_write (struct file *file, const char __user *buffer,
unsigned long count, void *data) unsigned long count, void *data)
{ {
rndis_params *p = data; rndis_params *p = data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment