[U-Boot] [U-Boot PATCH V2 3/8] usb: ums: remove static declaration of some ums functions

Eddie Cai
2017-04-16T15:48:51Z

remove static declaration of some functions. so these functions can
be called by other module

Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
---
drivers/usb/gadget/f_mass_storage.c | 4 ++--
include/f_mass_storage.h | 7 +++----
2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c
index eb2ff82..faf875e 100644
--- a/drivers/usb/gadget/f_mass_storage.c
+++ b/drivers/usb/gadget/f_mass_storage.c
@@ -775,7 +775,7 @@ static void busy_indicator(void)
state = 0;
}

-static int sleep_thread(struct fsg_common *common)
+int sleep_thread(struct fsg_common *common)
{
int rc = 0;
int i = 0, k = 0;
@@ -1899,7 +1899,7 @@ static int check_command(struct fsg_common *common, int cmnd_size,
}

-static int do_scsi_command(struct fsg_common *common)
+int do_scsi_command(struct fsg_common *common)
{
struct fsg_buffhd *bh;
int rc;
diff --git a/include/f_mass_storage.h b/include/f_mass_storage.h
index 620af06..df6ea33 100644
--- a/include/f_mass_storage.h
+++ b/include/f_mass_storage.h
@@ -391,9 +391,6 @@ fsg_otg_desc = {
#endif

-
-
-
#define GFP_ATOMIC ((gfp_t) 0)
#define PAGE_CACHE_SHIFT 12
#define PAGE_CACHE_SIZE (1 << PAGE_CACHE_SHIFT)
@@ -503,7 +500,9 @@ struct fsg_dev {
struct usb_ep *bulk_out;
};

-#endif /* __F_MASS_STORAGE_H_ */
+int sleep_thread(struct fsg_common *common);
+int do_scsi_command(struct fsg_common *common);

+#endif /* __F_MASS_STORAGE_H_ */

--
2.10.2