[PATCH 2/3] sunxi: mmc: group non-DM specific functions
Samuel Holland
samuel at sholland.org
Sun Jan 8 22:01:28 CET 2023
On 7/13/22 11:21, Andre Przywara wrote:
> As the SPL code for sunxi boards does not use the driver model, we have
> two mmc_ops structures, one for DM, one for non-DM. The actual hardware
> access code is shared, with the respective callback functions using that
> common code.
>
> To make this more obvious and easier to read, reorder the functions to
> group them: we first have the common code, then the non-DM bits, and
> the proper DM implementation at the end.
> Also document this structure in the comment at the beginning of the file.
>
> No functional change intended.
>
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>
> ---
> drivers/mmc/sunxi_mmc.c | 117 +++++++++++++++++++++-------------------
> 1 file changed, 61 insertions(+), 56 deletions(-)
Reviewed-by: Samuel Holland <samuel at sholland.org>
Tested-by: Samuel Holland <samuel at sholland.org>
More information about the U-Boot
mailing list