[U-Boot] mmc: Staticize sd_select_bus_width

Message ID 20180414223645.17419-1-marek.vasut+renesas@gmail.com
State Accepted
Delegated to: Tom Rini
Headers show
Series
  • [U-Boot] mmc: Staticize sd_select_bus_width
Related show

Commit Message

Marek Vasut April 14, 2018, 10:36 p.m.
From: Marek Vasut <marek.vasut@gmail.com>

Staticize the function since it's only used in mmc.c .

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Tom Rini <trini@konsulko.com>
---
 drivers/mmc/mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini April 23, 2018, 8:17 p.m. | #1
On Sun, Apr 15, 2018 at 12:36:45AM +0200, Marek Vasut wrote:

> From: Marek Vasut <marek.vasut@gmail.com>
> 
> Staticize the function since it's only used in mmc.c .
> 
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> Cc: Jaehoon Chung <jh80.chung@samsung.com>
> Cc: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

Patch

diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index c930893300..f72b80c704 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1334,7 +1334,7 @@  static int sd_set_card_speed(struct mmc *mmc, enum bus_mode mode)
 	return 0;
 }
 
-int sd_select_bus_width(struct mmc *mmc, int w)
+static int sd_select_bus_width(struct mmc *mmc, int w)
 {
 	int err;
 	struct mmc_cmd cmd;