From: Jagan Teki <jteki@openedev.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v6 2/3] spi: omap3: Make local functions as static
Date: Mon, 14 Mar 2016 22:58:00 +0530 [thread overview]
Message-ID: <1457976481-32204-2-git-send-email-jteki@openedev.com> (raw)
In-Reply-To: <1457976481-32204-1-git-send-email-jteki@openedev.com>
Attach static on local defined functions.
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Jagan Teki <jteki@openedev.com>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
---
Changes for v6:
- None.
drivers/spi/omap3_spi.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c
index e043c49..eb6ad37 100644
--- a/drivers/spi/omap3_spi.c
+++ b/drivers/spi/omap3_spi.c
@@ -306,8 +306,8 @@ void spi_release_bus(struct spi_slave *slave)
spi_reset(ds);
}
-int omap3_spi_write(struct spi_slave *slave, unsigned int len, const void *txp,
- unsigned long flags)
+static int omap3_spi_write(struct spi_slave *slave, unsigned int len,
+ const void *txp, unsigned long flags)
{
struct omap3_spi_slave *ds = to_omap3_spi(slave);
int i;
@@ -360,8 +360,8 @@ int omap3_spi_write(struct spi_slave *slave, unsigned int len, const void *txp,
return 0;
}
-int omap3_spi_read(struct spi_slave *slave, unsigned int len, void *rxp,
- unsigned long flags)
+static int omap3_spi_read(struct spi_slave *slave, unsigned int len,
+ void *rxp, unsigned long flags)
{
struct omap3_spi_slave *ds = to_omap3_spi(slave);
int i;
@@ -414,8 +414,8 @@ int omap3_spi_read(struct spi_slave *slave, unsigned int len, void *rxp,
}
/*McSPI Transmit Receive Mode*/
-int omap3_spi_txrx(struct spi_slave *slave, unsigned int len,
- const void *txp, void *rxp, unsigned long flags)
+static int omap3_spi_txrx(struct spi_slave *slave, unsigned int len,
+ const void *txp, void *rxp, unsigned long flags)
{
struct omap3_spi_slave *ds = to_omap3_spi(slave);
ulong start;
--
1.9.1
next prev parent reply other threads:[~2016-03-14 17:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-14 17:27 [U-Boot] [PATCH v6 1/3] spi: omap3: Move headers code inside the driver Jagan Teki
2016-03-14 17:28 ` Jagan Teki [this message]
2016-03-15 6:17 ` [U-Boot] [PATCH v6 2/3] spi: omap3: Make local functions as static Jagan Teki
2016-03-15 11:52 ` Tom Rini
2016-03-14 17:28 ` [U-Boot] [PATCH v6 3/3] spi: omap3: Convert to driver model Jagan Teki
2016-03-15 6:18 ` Jagan Teki
2016-03-15 11:52 ` Tom Rini
2016-03-15 6:16 ` [U-Boot] [PATCH v6 1/3] spi: omap3: Move headers code inside the driver Jagan Teki
2016-03-15 11:52 ` Tom Rini
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=1457976481-32204-2-git-send-email-jteki@openedev.com \
--to=jteki@openedev.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