@@ -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;
@@ -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_ */
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(-)