diff options
| author | Bin Meng <[email protected]> | 2023-09-26 16:43:31 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-10-10 16:19:29 -0400 |
| commit | 7020b2eca49e2c902bb443273ba21df2050d7f1e (patch) | |
| tree | 3ab43cd31eb25f3f4dbde1f07f6e4439242225b5 /common | |
| parent | 833ff23047c50e4053fb1bda21f4e2c9f6a3aa6a (diff) | |
blk: Use a macro for the typical block size
Avoid using the magic number 512 directly.
Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'common')
| -rw-r--r-- | common/usb_storage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/usb_storage.c b/common/usb_storage.c index 85774220ef2..35c656db0dc 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -219,8 +219,8 @@ static int usb_stor_probe_device(struct usb_device *udev) snprintf(str, sizeof(str), "lun%d", lun); ret = blk_create_devicef(udev->dev, "usb_storage_blk", str, - UCLASS_USB, usb_max_devs, 512, 0, - &dev); + UCLASS_USB, usb_max_devs, + DEFAULT_BLKSZ, 0, &dev); if (ret) { debug("Cannot bind driver\n"); return ret; |
