aboutsummaryrefslogtreecommitdiff
path: root/include/blk.h
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2023-08-14 01:46:48 +0200
committerTom Rini <trini@konsulko.com>2023-08-22 15:17:52 -0400
commit7f0fba9fb08fb7d31060848c719ffad3739e9d58 (patch)
treed5158597dbb599de1d440c0b1c6592b77c5d6408 /include/blk.h
parent804f7d63f26c00a64e2945fced4841abf200c0c0 (diff)
downloadu-boot-7f0fba9fb08fb7d31060848c719ffad3739e9d58.zip
u-boot-7f0fba9fb08fb7d31060848c719ffad3739e9d58.tar.gz
u-boot-7f0fba9fb08fb7d31060848c719ffad3739e9d58.tar.bz2
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 'include/blk.h')
-rw-r--r--include/blk.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/blk.h b/include/blk.h
index 2c9c798..8986e95 100644
--- a/include/blk.h
+++ b/include/blk.h
@@ -262,8 +262,6 @@ struct blk_ops {
int (*select_hwpart)(struct udevice *dev, int hwpart);
};
-#define blk_get_ops(dev) ((struct blk_ops *)(dev)->driver->ops)
-
/*
* These functions should take struct udevice instead of struct blk_desc,
* but this is convenient for migration to driver model. Add a 'd' prefix