Skip to contentSkip to conversation

mmc: Staticize sd_select_bus_width

PATCH In review Marek Vasut 2 participants 2 messages Apr 14, 2018 – Apr 23, 2018 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: Staticize sd_select_bus_width

From: Marek Vasut <[email protected]>

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

Cc Jaehoon Chung <[email protected]>
Cc Tom Rini <[email protected]>
---
 drivers/mmc/mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/mmc.c +1 -1
index c930893300..f72b80c704 100644
@@ -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;
Signature · 1 line
2.16.2
#1 lore raw
Quoted 7 lines · Marek Vasut

From: Marek Vasut <[email protected]>

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

Cc Jaehoon Chung <[email protected]>
Cc Tom Rini <[email protected]>

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180423/93237430/attachment.sig>