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 /drivers/input/gpio_keys.c | |
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 'drivers/input/gpio_keys.c')
-rw-r--r-- | drivers/input/gpio_keys.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/input/gpio_keys.c b/drivers/input/gpio_keys.c index c188cf34bd..f3639e744d 100644 --- a/drivers/input/gpio_keys.c +++ b/drivers/input/gpio_keys.c @@ -31,7 +31,7 @@ struct gpio_keys { struct poller_struct poller; struct input_device input; - struct device_d *dev; + struct device *dev; }; static inline struct gpio_keys * @@ -66,7 +66,7 @@ static void gpio_key_poller(struct poller_struct *poller) } } -static int gpio_keys_probe_pdata(struct gpio_keys *gk, struct device_d *dev) +static int gpio_keys_probe_pdata(struct gpio_keys *gk, struct device *dev) { struct gpio_keys_platform_data *pdata; int i; @@ -92,7 +92,7 @@ static int gpio_keys_probe_pdata(struct gpio_keys *gk, struct device_d *dev) return 0; } -static int gpio_keys_probe_dt(struct gpio_keys *gk, struct device_d *dev) +static int gpio_keys_probe_dt(struct gpio_keys *gk, struct device *dev) { struct device_node *npkey, *np = dev->of_node; int i = 0, ret; @@ -131,7 +131,7 @@ static int gpio_keys_probe_dt(struct gpio_keys *gk, struct device_d *dev) return 0; } -static int __init gpio_keys_probe(struct device_d *dev) +static int __init gpio_keys_probe(struct device *dev) { int ret, i, gpio; struct gpio_keys *gk; |