aboutsummaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorMarek Vasut2023-08-14 01:46:48 +0200
committerTom Rini2023-08-22 15:17:52 -0400
commit7f0fba9fb08fb7d31060848c719ffad3739e9d58 (patch)
treed5158597dbb599de1d440c0b1c6592b77c5d6408 /drivers/block
parent804f7d63f26c00a64e2945fced4841abf200c0c0 (diff)
disk: Make blk_get_ops() internal to blk uclass
Move the macro into blk-uclass.c , since it is only used there. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/blk-uclass.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c
index 9521b3eb878..6aac92d9962 100644
--- a/drivers/block/blk-uclass.c
+++ b/drivers/block/blk-uclass.c
@@ -17,6 +17,8 @@
#include <dm/uclass-internal.h>
#include <linux/err.h>
+#define blk_get_ops(dev) ((struct blk_ops *)(dev)->driver->ops)
+
static struct {
enum uclass_id id;
const char *name;