From patchwork Mon Nov 30 17:19:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 550259 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 9680F140291 for ; Tue, 1 Dec 2015 04:20:08 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=Bf6UxVln; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 466C64B934; Mon, 30 Nov 2015 18:19:49 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8NtlVHP3b3dc; Mon, 30 Nov 2015 18:19:49 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B06044B937; Mon, 30 Nov 2015 18:19:48 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8342C4B931 for ; Mon, 30 Nov 2015 18:19:29 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oUhCtQ509jGu for ; Mon, 30 Nov 2015 18:19:29 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ob0-f175.google.com (mail-ob0-f175.google.com [209.85.214.175]) by theia.denx.de (Postfix) with ESMTPS id 120E74B91D for ; Mon, 30 Nov 2015 18:19:17 +0100 (CET) Received: by obdgf3 with SMTP id gf3so133952939obd.3 for ; Mon, 30 Nov 2015 09:19:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Qu4QJe76dvbE4Uf1O/wzepnx2g8yAcxP4GUNBkUyUKI=; b=Bf6UxVln4QXFm+xJUU7g7k+q+V9dx9EKVJjZ3p57gHg/uvFFPV5PSrGf3YZIxl4SDV C7ZkUvWC1PnZbVXSe99S8eSiDQ1UeGrlf02PE8y5il5+N+xD6hGKmLHzvCCpq6tvamY6 zRPBrw1GaVGVnfY3mHp69ZsF2YpNZaP03hYjexlxZ2GURmYRSiZRVk2IKHzfho5udpcx /f2Se4H/qIFAUgHx1/WscLsC8u2JvDkoH829jR8WNu7cM1HCMm5cNfYtrBtrf6WhTn4M VSdBWcKLbLsKiT6DS0HrViZNaoqrV4DV82XMfOwU1SLjvRg/wBi1iz4rMRzPMsyYB/g7 c9Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Qu4QJe76dvbE4Uf1O/wzepnx2g8yAcxP4GUNBkUyUKI=; b=eAUPUZV+JnX/I4jfJfy8eTwCC7kTzujXkk5SBtJxVTohfunSACp+e0hEEu2qlbk2+t HonQTqI4+ORtPhnRs+GrxvlIelXccmsTgPRWuiUTJgqDJKCW7N2NZ+TGVMaZ4GEC8bzW JdFgLMY4Oh27EdoYHDhbMtJBgWIxO9mMrpgkA5vI0U2wVCeV7XoXXTTcghntwgkFfU13 2z5VZ5Zjanne5DjL7dfJvNq5RiSh9g8EsRGsEy1+fKmn2QnD6uYM/xW+Nh/ECiMGolpz v60nQ6IHmROM8wuYVNPMgTqGKdL76CFgMqhy+YIBzTKZHVuZdwyCxsZCXIcGEmVvtfz6 AxkQ== X-Gm-Message-State: ALoCoQlEkBJR6Z45Tv0Ud8pIzrFKQ0rrHKPXeedd4gDbOvK6pk9owPPYbC9sYjPcXlFVY7tvuz5a X-Received: by 10.60.17.1 with SMTP id k1mr28875250oed.4.1448903956052; Mon, 30 Nov 2015 09:19:16 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by smtp.gmail.com with ESMTPSA id w84sm21776746oiw.22.2015.11.30.09.19.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Nov 2015 09:19:15 -0800 (PST) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id EA79A220582; Mon, 30 Nov 2015 10:19:14 -0700 (MST) From: Simon Glass To: U-Boot Mailing List , Tom Rini Date: Mon, 30 Nov 2015 10:19:07 -0700 Message-Id: <1448903949-2092-3-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1448903949-2092-1-git-send-email-sjg@chromium.org> References: <1448903949-2092-1-git-send-email-sjg@chromium.org> Cc: Guillaume GARDET , Pantelis Antoniou Subject: [U-Boot] [PATCH 2/3] spl: mmc: Rename 'mmc' variable to 'mmcp' X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The 'p' suffix makes it more obvious that we are dealing with a pointer to a (pointer) value that will be returned to its caller. Signed-off-by: Simon Glass Acked-by: Nikita Kiryanov --- common/spl/spl_mmc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 9df4786..8d47059 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -79,12 +79,12 @@ int spl_mmc_get_device_index(u32 boot_device) } #ifdef CONFIG_DM_MMC -static int spl_mmc_find_device(struct mmc **mmc, u32 boot_device) +static int spl_mmc_find_device(struct mmc **mmcp, u32 boot_device) { struct udevice *dev; int err, mmc_dev; - *mmc = NULL; + *mmcp = NULL; mmc_dev = spl_mmc_get_device_index(boot_device); if (mmc_dev < 0) return mmc_dev; @@ -105,11 +105,11 @@ static int spl_mmc_find_device(struct mmc **mmc, u32 boot_device) return err; } - *mmc = mmc_get_mmc_dev(dev); - return *mmc != NULL ? 0 : -ENODEV; + *mmcp = mmc_get_mmc_dev(dev); + return *mmcp != NULL ? 0 : -ENODEV; } #else -static int spl_mmc_find_device(struct mmc **mmc, u32 boot_device) +static int spl_mmc_find_device(struct mmc **mmcp, u32 boot_device) { int err, mmc_dev; @@ -126,8 +126,8 @@ static int spl_mmc_find_device(struct mmc **mmc, u32 boot_device) } /* We register only one device. So, the dev id is always 0 */ - *mmc = find_mmc_device(mmc_dev); - if (!*mmc) { + *mmcp = find_mmc_device(mmc_dev); + if (!*mmcp) { #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT puts("spl: mmc device not found\n"); #endif