mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user