summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2019-09-09 22:34:50 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-09-12 10:30:12 +0200
commit4159407136abb44ca26fac22ab5397236fccc410 (patch)
treecafdea5d7e1102555181f039587294bdd5d24b33 /commands
parent8b76032fdf83521c3df55cae50fba286e23746ae (diff)
downloadbarebox-4159407136abb44ca26fac22ab5397236fccc410.tar.gz
barebox-4159407136abb44ca26fac22ab5397236fccc410.tar.xz
mci: provide wrapper for mci_get_device_by_name ∘ devpath_to_name
Also convert the only user of mci_get_device_by_name to this new wrapper. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/mmc_extcsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/mmc_extcsd.c b/commands/mmc_extcsd.c
index ad8e9ad19f..4f566bc805 100644
--- a/commands/mmc_extcsd.c
+++ b/commands/mmc_extcsd.c
@@ -2373,7 +2373,7 @@ static int do_mmc_extcsd(int argc, char *argv[])
u8 *dst;
int retval = 0;
int opt;
- char *devname;
+ char *devpath;
int index = 0;
int value = 0;
int write_operation = 0;
@@ -2411,9 +2411,9 @@ static int do_mmc_extcsd(int argc, char *argv[])
if (optind == argc)
return COMMAND_ERROR_USAGE;
- devname = argv[optind];
+ devpath = argv[optind];
- mci = mci_get_device_by_name(devpath_to_name(devname));
+ mci = mci_get_device_by_devpath(devpath);
if (mci == NULL) {
retval = -ENOENT;
goto error;