[PATCH 8/8] disk: Make blk_get_ops() internal to blk uclass

Simon Glass sjg at chromium.org
Tue Aug 15 00:42:57 CEST 2023


On Sun, 13 Aug 2023 at 17:47, Marek Vasut
<marek.vasut+renesas at mailbox.org> wrote:
>
> Move the macro into blk-uclass.c , since it is only used there.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
> ---
> Cc: AKASHI Takahiro <takahiro.akashi at linaro.org>
> Cc: Abdellatif El Khlifi <abdellatif.elkhlifi at arm.com>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Cc: Heinrich Schuchardt <xypron.glplk at gmx.de>
> Cc: Joshua Watt <jpewhacker at gmail.com>
> Cc: Michal Suchanek <msuchanek at suse.de>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Tobias Waldekranz <tobias at waldekranz.com>
> ---
>  drivers/block/blk-uclass.c | 2 ++
>  include/blk.h              | 2 --
>  2 files changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Unfortunately this does not stop people using the ops member directly.

For this series, I tried a patch myself [1] but I think I stuffed it
up. So I will let Takahiro-San figure it out. I would very much like
to see this clean-up go in.

Regards,
Simon

[1] https://patchwork.ozlabs.org/project/uboot/patch/20230319192957.1084530-1-sjg@chromium.org/


More information about the U-Boot mailing list