diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-12-14 13:35:09 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-01-10 15:43:47 +0100 |
commit | c0afc799fb9a19a11f651596fe23b4b755593887 (patch) | |
tree | 9c27f1533193d31757744b22b2af9186d23e67ed /commands | |
parent | e70b9d7a74698f1374244b2251216428db920aed (diff) | |
download | barebox-c0afc799fb9a19a11f651596fe23b4b755593887.tar.gz barebox-c0afc799fb9a19a11f651596fe23b4b755593887.tar.xz |
Rename struct device_d to device
The '_d' suffix was originally introduced in case we want to import
Linux struct device as a separate struct into barebox. Over time it
became clear that this won't happen, instead barebox struct device_d
is basically the same as Linux struct device. Rename the struct name
accordingly to make porting Linux code easier.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.barebox.org/20221214123512.189688-3-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/detect.c | 2 | ||||
-rw-r--r-- | commands/devinfo.c | 6 | ||||
-rw-r--r-- | commands/devunbind.c | 2 | ||||
-rw-r--r-- | commands/drvinfo.c | 2 | ||||
-rw-r--r-- | commands/gpio.c | 2 | ||||
-rw-r--r-- | commands/miitool.c | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/commands/detect.c b/commands/detect.c index 70eca57537..ad1745adce 100644 --- a/commands/detect.c +++ b/commands/detect.c @@ -12,7 +12,7 @@ static int do_detect(int argc, char *argv[]) { - struct device_d *dev; + struct device *dev; int opt, i, ret, err; int option_list = 0; int option_all = 0; diff --git a/commands/devinfo.c b/commands/devinfo.c index a0addfbcf1..2487786c71 100644 --- a/commands/devinfo.c +++ b/commands/devinfo.c @@ -6,9 +6,9 @@ #include <complete.h> #include <driver.h> -static int do_devinfo_subtree(struct device_d *dev, int depth) +static int do_devinfo_subtree(struct device *dev, int depth) { - struct device_d *child; + struct device *child; struct cdev *cdev, *cdevl; int i; @@ -46,7 +46,7 @@ static int do_devinfo_subtree(struct device_d *dev, int depth) static int do_devinfo(int argc, char *argv[]) { - struct device_d *dev; + struct device *dev; struct param_d *param; int i; int first; diff --git a/commands/devunbind.c b/commands/devunbind.c index 3f9cd7b849..dab7f834db 100644 --- a/commands/devunbind.c +++ b/commands/devunbind.c @@ -10,7 +10,7 @@ static int do_devunbind(int argc, char *argv[]) { bool unregister = false; - struct device_d *dev; + struct device *dev; int ret = COMMAND_SUCCESS, i, opt; while ((opt = getopt(argc, argv, "fl")) > 0) { diff --git a/commands/drvinfo.c b/commands/drvinfo.c index 9f8f971ee9..4961f4c7dd 100644 --- a/commands/drvinfo.c +++ b/commands/drvinfo.c @@ -9,7 +9,7 @@ static int do_drvinfo(int argc, char *argv[]) { struct driver_d *drv; - struct device_d *dev; + struct device *dev; printf("Driver\tDevice(s)\n"); printf("--------------------\n"); diff --git a/commands/gpio.c b/commands/gpio.c index 5e5eb20583..caabb5adc0 100644 --- a/commands/gpio.c +++ b/commands/gpio.c @@ -10,7 +10,7 @@ static int get_gpio_and_value(int argc, char *argv[], int *gpio, int *value) { struct gpio_chip *chip = NULL; - struct device_d *dev; + struct device *dev; int count = 1; int ret = 0; int opt; diff --git a/commands/miitool.c b/commands/miitool.c index 47494f5089..24e383736a 100644 --- a/commands/miitool.c +++ b/commands/miitool.c @@ -217,7 +217,7 @@ static int show_basic_mii(struct mii_bus *mii, struct phy_device *phydev, return 0; } -static void mdiobus_show(struct device_d *dev, const char *phydevname, +static void mdiobus_show(struct device *dev, const char *phydevname, int verbose) { struct mii_bus *mii = to_mii_bus(dev); |