mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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>
This commit is contained in:
parent
804f7d63f2
commit
7f0fba9fb0
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue