summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-12-02 10:59:12 -0700
committerTom Rini <trini@konsulko.com>2015-12-05 18:22:33 -0500
commit99c7a51a249292ba98889b253659b27ed089bd7e (patch)
tree4c036ef4b69a4a079f448f8f3c40d46b848b8964 /common
parentd773a008ee3135b28becc5ebce050c931767fed8 (diff)
downloadblackbird-obmc-uboot-99c7a51a249292ba98889b253659b27ed089bd7e.tar.gz
blackbird-obmc-uboot-99c7a51a249292ba98889b253659b27ed089bd7e.zip
spl: mmc: Rename 'mmc' variable to 'mmcp'
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 <sjg@chromium.org> Acked-by: Nikita Kiryanov <nikita@compulab.co.il> Tested-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_mmc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index 43748d05b2..d8b514eac7 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -79,7 +79,7 @@ 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;
@@ -104,12 +104,12 @@ static int spl_mmc_find_device(struct mmc **mmc, u32 boot_device)
return err;
}
- *mmc = NULL;
- *mmc = mmc_get_mmc_dev(dev);
- return *mmc != NULL ? 0 : -ENODEV;
+ *mmcp = NULL;
+ *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
OpenPOWER on IntegriCloud