diff mbox series

[U-Boot] mmc: Staticize sd_select_bus_width

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

Commit Message

Marek Vasut April 14, 2018, 10:36 p.m. UTC
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. UTC | #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!
diff mbox series

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;