diff mbox

mmc: add static to spl_mmc_get_device_index()

Message ID 1498117957-17688-1-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 207d8b35330f05265d099aadb8d4c2505a403bea
Headers show

Commit Message

Masahiro Yamada June 22, 2017, 7:52 a.m. UTC
This function is only used in common/spl/spl_mmc.c[

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 common/spl/spl_mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Masahiro Yamada June 22, 2017, 8:22 a.m. UTC | #1
2017-06-22 16:52 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> This function is only used in common/spl/spl_mmc.c[

The '[' at the end of line is a typo.

Please drop it when applied.
Bin Meng June 22, 2017, 8:23 a.m. UTC | #2
On Thu, Jun 22, 2017 at 4:22 PM, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
> 2017-06-22 16:52 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
>> This function is only used in common/spl/spl_mmc.c[
>
> The '[' at the end of line is a typo.
>
> Please drop it when applied.
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Jaehoon Chung June 29, 2017, 9:45 a.m. UTC | #3
On 06/22/2017 04:52 PM, Masahiro Yamada wrote:
> This function is only used in common/spl/spl_mmc.c[
> 
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Applied to u-boot-mmc. Thanks!

Best Regards,
Jaehoon Chung

> ---
> 
>  common/spl/spl_mmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
> index 18c1b59b22cc..bb48cac1efac 100644
> --- a/common/spl/spl_mmc.c
> +++ b/common/spl/spl_mmc.c
> @@ -96,7 +96,7 @@ end:
>  	return 0;
>  }
>  
> -int spl_mmc_get_device_index(u32 boot_device)
> +static int spl_mmc_get_device_index(u32 boot_device)
>  {
>  	switch (boot_device) {
>  	case BOOT_DEVICE_MMC1:
>
diff mbox

Patch

diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index 18c1b59b22cc..bb48cac1efac 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -96,7 +96,7 @@  end:
 	return 0;
 }
 
-int spl_mmc_get_device_index(u32 boot_device)
+static int spl_mmc_get_device_index(u32 boot_device)
 {
 	switch (boot_device) {
 	case BOOT_DEVICE_MMC1: