mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
dm: rename device struct to udevice
using UBI and DM together leads in compiler error, as both define a "struct device", so rename "struct device" in include/dm/device.h to "struct udevice", as we use linux code (MTD/UBI/UBIFS some USB code,...) and cannot change the linux "struct device" Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Marek Vasut <marex@denx.de>
This commit is contained in:
@@ -60,13 +60,13 @@ struct uclass_driver *lists_uclass_lookup(enum uclass_id id)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int lists_bind_drivers(struct device *parent)
|
||||
int lists_bind_drivers(struct udevice *parent)
|
||||
{
|
||||
struct driver_info *info =
|
||||
ll_entry_start(struct driver_info, driver_info);
|
||||
const int n_ents = ll_entry_count(struct driver_info, driver_info);
|
||||
struct driver_info *entry;
|
||||
struct device *dev;
|
||||
struct udevice *dev;
|
||||
int result = 0;
|
||||
int ret;
|
||||
|
||||
@@ -116,12 +116,12 @@ static int driver_check_compatible(const void *blob, int offset,
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
int lists_bind_fdt(struct device *parent, const void *blob, int offset)
|
||||
int lists_bind_fdt(struct udevice *parent, const void *blob, int offset)
|
||||
{
|
||||
struct driver *driver = ll_entry_start(struct driver, driver);
|
||||
const int n_ents = ll_entry_count(struct driver, driver);
|
||||
struct driver *entry;
|
||||
struct device *dev;
|
||||
struct udevice *dev;
|
||||
const char *name;
|
||||
int result = 0;
|
||||
int ret;
|
||||
|
Reference in New Issue
Block a user