]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: mmc: group non-DM specific functions
authorAndre Przywara <andre.przywara@arm.com>
Wed, 13 Jul 2022 16:21:44 +0000 (17:21 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sat, 21 Jan 2023 01:32:23 +0000 (01:32 +0000)
commit1ec883f2ca57a3e4907c2b951408ea60692108e4
tree4ff9aa01ce249cb32c081144039129450ec0b606
parentdad3c2061c91e8f4509b3eca3bc117c76e32d120
sunxi: mmc: group non-DM specific functions

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@arm.com>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Tested-by: Samuel Holland <samuel@sholland.org>
drivers/mmc/sunxi_mmc.c