public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/3] block: make blk_create_device() static
@ 2024-10-18  1:30 Heinrich Schuchardt
  2024-10-18  1:30 ` [PATCH 1/3] rockchip: block: simplify rkmtd driver Heinrich Schuchardt
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Heinrich Schuchardt @ 2024-10-18  1:30 UTC (permalink / raw)
  To: Tom Rini
  Cc: Kever Yang, Ilias Apalodimas, Simon Glass, Heiko Schocher,
	Alexey Romanov, Johan Jonker, Michael Trimarchi, Sean Anderson,
	Quentin Schulz, u-boot, Heinrich Schuchardt

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-10-24 20:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-18  1:30 [PATCH 0/3] block: make blk_create_device() static Heinrich Schuchardt
2024-10-18  1:30 ` [PATCH 1/3] rockchip: block: simplify rkmtd driver Heinrich Schuchardt
2024-10-18 13:33   ` Johan Jonker
2024-10-19 11:50     ` Simon Glass
2024-10-21 13:35       ` Heinrich Schuchardt
2024-10-22 19:58         ` Johan Jonker
2024-10-18  1:30 ` [PATCH 2/3] efi_driver: use blk_create_devicef() Heinrich Schuchardt
2024-10-18 14:57   ` Simon Glass
2024-10-18  1:30 ` [PATCH 3/3] block: make blk_create_device() static Heinrich Schuchardt
2024-10-18 14:52   ` Simon Glass
2024-10-21 10:49   ` Ilias Apalodimas
2024-10-24 20:42 ` (subset) [PATCH 0/3] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox