Commit 10b69ce0 authored by Andrzej Pietrasiewicz's avatar Andrzej Pietrasiewicz Committed by Felipe Balbi

usb: gadget: FunctionFS: staticize functions used only in f_fs.c

ffs_alloc_dev and ffs_free_dev are used only in f_fs.c,
so make them static.
Acked-by: default avatarMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: default avatarAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent ab13cb0c
...@@ -162,7 +162,9 @@ DEFINE_MUTEX(ffs_lock); ...@@ -162,7 +162,9 @@ DEFINE_MUTEX(ffs_lock);
EXPORT_SYMBOL(ffs_lock); EXPORT_SYMBOL(ffs_lock);
static struct ffs_dev *ffs_find_dev(const char *name); static struct ffs_dev *ffs_find_dev(const char *name);
static struct ffs_dev *ffs_alloc_dev(void);
static int _ffs_name_dev(struct ffs_dev *dev, const char *name); static int _ffs_name_dev(struct ffs_dev *dev, const char *name);
static void ffs_free_dev(struct ffs_dev *dev);
static void *ffs_acquire_dev(const char *dev_name); static void *ffs_acquire_dev(const char *dev_name);
static void ffs_release_dev(struct ffs_data *ffs_data); static void ffs_release_dev(struct ffs_data *ffs_data);
static int ffs_ready(struct ffs_data *ffs); static int ffs_ready(struct ffs_data *ffs);
...@@ -2473,7 +2475,7 @@ static struct usb_function *ffs_alloc(struct usb_function_instance *fi) ...@@ -2473,7 +2475,7 @@ static struct usb_function *ffs_alloc(struct usb_function_instance *fi)
/* /*
* ffs_lock must be taken by the caller of this function * ffs_lock must be taken by the caller of this function
*/ */
struct ffs_dev *ffs_alloc_dev(void) static struct ffs_dev *ffs_alloc_dev(void)
{ {
struct ffs_dev *dev; struct ffs_dev *dev;
int ret; int ret;
...@@ -2550,7 +2552,7 @@ EXPORT_SYMBOL(ffs_single_dev); ...@@ -2550,7 +2552,7 @@ EXPORT_SYMBOL(ffs_single_dev);
/* /*
* ffs_lock must be taken by the caller of this function * ffs_lock must be taken by the caller of this function
*/ */
void ffs_free_dev(struct ffs_dev *dev) static void ffs_free_dev(struct ffs_dev *dev)
{ {
list_del(&dev->entry); list_del(&dev->entry);
if (dev->name_allocated) if (dev->name_allocated)
......
...@@ -65,10 +65,8 @@ static inline void ffs_dev_unlock(void) ...@@ -65,10 +65,8 @@ static inline void ffs_dev_unlock(void)
mutex_unlock(&ffs_lock); mutex_unlock(&ffs_lock);
} }
struct ffs_dev *ffs_alloc_dev(void);
int ffs_name_dev(struct ffs_dev *dev, const char *name); int ffs_name_dev(struct ffs_dev *dev, const char *name);
int ffs_single_dev(struct ffs_dev *dev); int ffs_single_dev(struct ffs_dev *dev);
void ffs_free_dev(struct ffs_dev *dev);
struct ffs_epfile; struct ffs_epfile;
struct ffs_function; struct ffs_function;
......
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