dm: mmc: Update mmc_get_mmc_dev() to use const *
authorSimon Glass <sjg@chromium.org>
Wed, 8 Apr 2020 14:33:00 +0000 (08:33 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 24 Apr 2020 20:40:09 +0000 (16:40 -0400)
commit3a905cd231de8834cda329f20854dc1f91328ae5
tree7d0842fd3a139b5dc7d73438711b6f0d5f438c06
parentf05970380e4c72a198cce29affc622a8e543b4de
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>
drivers/mmc/mmc-uclass.c
include/mmc.h