public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jagan Teki <jteki@openedev.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] spi: omap3: Make local functions as static
Date: Fri, 12 Feb 2016 00:30:38 +0530	[thread overview]
Message-ID: <1455217239-31416-2-git-send-email-jteki@openedev.com> (raw)
In-Reply-To: <1455217239-31416-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>
Cc: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
---
 drivers/spi/omap3_spi.c | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c
index 12fa290..8b0f665 100644
--- a/drivers/spi/omap3_spi.c
+++ b/drivers/spi/omap3_spi.c
@@ -105,13 +105,6 @@ static inline struct omap3_spi_slave *to_omap3_spi(struct spi_slave *slave)
 	return container_of(slave, struct omap3_spi_slave, slave);
 }
 
-int omap3_spi_txrx(struct spi_slave *slave, unsigned int len, const void *txp,
-			void *rxp, unsigned long flags);
-int omap3_spi_write(struct spi_slave *slave, unsigned int len, const void *txp,
-		    unsigned long flags);
-int omap3_spi_read(struct spi_slave *slave, unsigned int len, void *rxp,
-		   unsigned long flags);
-
 static void spi_reset(struct omap3_spi_slave *ds)
 {
 	unsigned int tmp;
@@ -312,8 +305,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;
@@ -366,8 +359,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;
@@ -420,8 +413,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

  reply	other threads:[~2016-02-11 19:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-11 19:00 [U-Boot] [PATCH 1/3] spi: omap3: Move headers code inside the driver Jagan Teki
2016-02-11 19:00 ` Jagan Teki [this message]
2016-02-14 19:58   ` [U-Boot] [PATCH 2/3] spi: omap3: Make local functions as static Christophe Henri RICARD
2016-02-11 19:00 ` [U-Boot] [PATCH 3/3] spi: omap3: Convert to driver model Jagan Teki
2016-02-14 19:59   ` Christophe Henri RICARD
2016-02-16 16:00   ` Simon Glass
2016-02-16 16:28     ` Tom Rini
2016-02-14 19:57 ` [U-Boot] [PATCH 1/3] spi: omap3: Move headers code inside the driver Christophe Henri RICARD
2016-02-14 20:35   ` Jagan Teki

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=1455217239-31416-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