summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-04-08 17:33:00 +0300
committerTom Rini <trini@konsulko.com>2020-04-24 23:40:09 +0300
commit3a905cd231de8834cda329f20854dc1f91328ae5 (patch)
tree7d0842fd3a139b5dc7d73438711b6f0d5f438c06 /include
parentf05970380e4c72a198cce29affc622a8e543b4de (diff)
downloadu-boot-3a905cd231de8834cda329f20854dc1f91328ae5.tar.xz
dm: mmc: Update mmc_get_mmc_dev() to use const *
This function does not modify the device to change it to use const *, so that callers with a const udevice * can call it without a cast. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/mmc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mmc.h b/include/mmc.h
index 5e9d15cb41..6a2e9739e0 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -377,7 +377,7 @@ struct mmc_uclass_priv {
* @dev: Device
* @return associated mmc struct pointer if available, else NULL
*/
-struct mmc *mmc_get_mmc_dev(struct udevice *dev);
+struct mmc *mmc_get_mmc_dev(const struct udevice *dev);
/* End of driver model support */