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:
@@ -23,14 +23,14 @@ struct dm_demo_pdata {
|
||||
};
|
||||
|
||||
struct demo_ops {
|
||||
int (*hello)(struct device *dev, int ch);
|
||||
int (*status)(struct device *dev, int *status);
|
||||
int (*hello)(struct udevice *dev, int ch);
|
||||
int (*status)(struct udevice *dev, int *status);
|
||||
};
|
||||
|
||||
int demo_hello(struct device *dev, int ch);
|
||||
int demo_status(struct device *dev, int *status);
|
||||
int demo_hello(struct udevice *dev, int ch);
|
||||
int demo_status(struct udevice *dev, int *status);
|
||||
int demo_list(void);
|
||||
|
||||
int demo_parse_dt(struct device *dev);
|
||||
int demo_parse_dt(struct udevice *dev);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user