]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commite9ea92ea07ac64bb3274775006a7c51e22824afd
tree7d0842fd3a139b5dc7d73438711b6f0d5f438c06
parent0811c54d11d2889cf4aec9983436383e96d54fae
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