[PATCH 0/3] block: make blk_create_device() static
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Fri Oct 18 03:30:12 CEST 2024
There should be a defined interface between block devices drivers and the
block class layer. Most drivers already use blk_create_devicef() to
generate block devices. The EFI block device driver and the Rockchip
rkmtd driver are the exceptions.
* Convert the remaining drivers to use blk_create_devicef().
* Make blk_create_device() a static function.
This will ensure that future block drivers will use blk_create_devicef(),
too.
Heinrich Schuchardt (3):
rockchip: block: simplify rkmtd driver
efi_driver: use blk_create_devicef()
block: make blk_create_device() static
drivers/block/blk-uclass.c | 19 ++++++++++++++++---
drivers/block/rkmtd.c | 21 ++-------------------
include/blk.h | 17 -----------------
lib/efi_driver/efi_block_device.c | 8 +++-----
4 files changed, 21 insertions(+), 44 deletions(-)
--
2.45.2
More information about the U-Boot
mailing list