From 4159407136abb44ca26fac22ab5397236fccc410 Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Mon, 9 Sep 2019 22:34:50 +0200 Subject: mci: provide wrapper for mci_get_device_by_name ∘ devpath_to_name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also convert the only user of mci_get_device_by_name to this new wrapper. Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer --- commands/mmc_extcsd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'commands') 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; -- cgit v1.2.3