[PATCH 01/15] blk: Use a macro for the typical block size

Simon Glass sjg at chromium.org
Mon Oct 2 03:16:55 CEST 2023


On Tue, 26 Sept 2023 at 02:45, Bin Meng <bmeng at tinylab.org> wrote:
>
> Avoid using the magic number 512 directly.
>
> Signed-off-by: Bin Meng <bmeng at tinylab.org>
> ---
>
>  common/usb_storage.c     | 4 ++--
>  drivers/ata/dwc_ahsata.c | 3 ++-
>  drivers/ata/fsl_sata.c   | 3 ++-
>  drivers/ata/sata_mv.c    | 3 ++-
>  drivers/ata/sata_sil.c   | 3 ++-
>  drivers/block/blkmap.c   | 2 +-
>  drivers/block/host_dev.c | 2 +-
>  drivers/mmc/mmc-uclass.c | 2 +-
>  drivers/nvme/nvme.c      | 2 +-
>  include/blk.h            | 2 ++
>  10 files changed, 16 insertions(+), 10 deletions(-)

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


More information about the U-Boot mailing list