dm: blk: Add a legacy block interface
authorSimon Glass <sjg@chromium.org>
Sun, 1 May 2016 17:36:03 +0000 (11:36 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
commit6eef6eac1fc137c97bf1993304ed83b8e483c80a
treeacf93cca012d7aa2b37ff8befb44c404271e4740
parentc649e3c91cdc96a86ca2665fcfafaca5c4b384b1
dm: blk: Add a legacy block interface

There is quite a bit of duplicated common code related to block devices
in the IDE and SCSI implementations.

Create some helper functions that can be used to reduce the duplication.
These rely on a linker list of interface-type drivers

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/Makefile
drivers/block/blk_legacy.c [new file with mode: 0644]
include/blk.h