From: Eddie Cai <eddie.cai.linux@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot PATCH V2 3/8] usb: ums: remove static declaration of some ums functions
Date: Sun, 16 Apr 2017 23:48:51 +0800 [thread overview]
Message-ID: <20170416154856.14636-4-eddie.cai.linux@gmail.com> (raw)
In-Reply-To: <20170416154856.14636-1-eddie.cai.linux@gmail.com>
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
next prev parent reply other threads:[~2017-04-16 15:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-16 15:48 [U-Boot] [U-Boot PATCH V2 0/8] introduce Rockchip rockusb Eddie Cai
2017-04-16 15:48 ` [U-Boot] [U-Boot PATCH V2 1/8] usb: ums: split macro and data struct in f_mass_storage.c Eddie Cai
2017-04-16 16:01 ` Michael Nazzareno Trimarchi
2017-04-16 15:48 ` [U-Boot] [U-Boot PATCH V2 2/8] usb: ums: merge storage_common.c into f_mass_storage.c Eddie Cai
2017-04-16 15:48 ` Eddie Cai [this message]
2017-04-16 15:48 ` [U-Boot] [U-Boot PATCH V2 4/8] usb: ums: add functions to set and get usb interface descriptor Eddie Cai
2017-04-16 15:48 ` [U-Boot] [U-Boot PATCH V2 5/8] usb: ums: add do_extra_command Eddie Cai
2017-04-16 15:48 ` [U-Boot] [U-Boot PATCH V2 6/8] cmd: add rockusb command Eddie Cai
2017-04-16 15:48 ` [U-Boot] [U-Boot PATCH V2 7/8] rockchip: config: enable rockusb support on rk3288 based board Eddie Cai
2017-04-16 15:48 ` [U-Boot] [U-Boot PATCH V2 8/8] rockusb: add a simple readme Eddie Cai
2017-04-16 16:02 ` [U-Boot] [U-Boot PATCH V2 0/8] introduce Rockchip rockusb Michael Nazzareno Trimarchi
2017-04-16 16:10 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170416154856.14636-4-eddie.cai.linux@gmail.com \
--to=eddie.cai.linux@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox