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/rtc | |
parent | e70b9d7a74698f1374244b2251216428db920aed (diff) | |
download | barebox-c0afc799fb9a19a11f651596fe23b4b755593887.tar.gz |
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/rtc')
-rw-r--r-- | drivers/rtc/class.c | 2 | ||||
-rw-r--r-- | drivers/rtc/rtc-abracon.c | 2 | ||||
-rw-r--r-- | drivers/rtc/rtc-ds1307.c | 6 | ||||
-rw-r--r-- | drivers/rtc/rtc-imxdi.c | 4 | ||||
-rw-r--r-- | drivers/rtc/rtc-jz4740.c | 2 | ||||
-rw-r--r-- | drivers/rtc/rtc-pcf85363.c | 4 |
6 files changed, 10 insertions, 10 deletions
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index 12751c8a3c..3edb294ed7 100644 --- a/drivers/rtc/class.c +++ b/drivers/rtc/class.c @@ -51,7 +51,7 @@ EXPORT_SYMBOL(rtc_set_time); int rtc_register(struct rtc_device *rtcdev) { - struct device_d *dev = &rtcdev->class_dev; + struct device *dev = &rtcdev->class_dev; if (!rtcdev->ops) return -EINVAL; diff --git a/drivers/rtc/rtc-abracon.c b/drivers/rtc/rtc-abracon.c index 585b95c4a7..b6c0c63de0 100644 --- a/drivers/rtc/rtc-abracon.c +++ b/drivers/rtc/rtc-abracon.c @@ -80,7 +80,7 @@ static const struct rtc_class_ops ds13xx_rtc_ops = { .set_time = abracon_set_time, }; -static int abracon_probe(struct device_d *dev) +static int abracon_probe(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct abracon *abracon; diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 680611fea7..92cffff717 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -193,7 +193,7 @@ static inline struct ds1307 *to_ds1307_priv(struct rtc_device *rtcdev) static int ds1307_get_time(struct rtc_device *rtcdev, struct rtc_time *t) { - struct device_d *dev = rtcdev->dev; + struct device *dev = rtcdev->dev; struct ds1307 *ds1307 = to_ds1307_priv(rtcdev); int tmp; @@ -231,7 +231,7 @@ static int ds1307_get_time(struct rtc_device *rtcdev, struct rtc_time *t) static int ds1307_set_time(struct rtc_device *rtcdev, struct rtc_time *t) { - struct device_d *dev = rtcdev->dev; + struct device *dev = rtcdev->dev; struct ds1307 *ds1307 = to_ds1307_priv(rtcdev); int result; int tmp; @@ -280,7 +280,7 @@ static const struct rtc_class_ops ds13xx_rtc_ops = { .set_time = ds1307_set_time, }; -static int ds1307_probe(struct device_d *dev) +static int ds1307_probe(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct ds1307 *ds1307; diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c index 297fdc17b9..d196d25558 100644 --- a/drivers/rtc/rtc-imxdi.c +++ b/drivers/rtc/rtc-imxdi.c @@ -102,7 +102,7 @@ * @dsr: copy of the DSR register */ struct imxdi_dev { - struct device_d *dev; + struct device *dev; struct rtc_device rtc; void __iomem *ioaddr; struct clk *clk; @@ -542,7 +542,7 @@ static struct nvmem_config nvstore_nvmem_config = { .bus = &nvstore_nvmem_bus, }; -static int __init dryice_rtc_probe(struct device_d *dev) +static int __init dryice_rtc_probe(struct device *dev) { struct resource *res; struct imxdi_dev *imxdi; diff --git a/drivers/rtc/rtc-jz4740.c b/drivers/rtc/rtc-jz4740.c index 52f52349e6..16d3e66c09 100644 --- a/drivers/rtc/rtc-jz4740.c +++ b/drivers/rtc/rtc-jz4740.c @@ -106,7 +106,7 @@ static struct rtc_class_ops jz4740_rtc_ops = { .set_time = jz4740_rtc_set_time, }; -static int jz4740_rtc_probe(struct device_d *dev) +static int jz4740_rtc_probe(struct device *dev) { struct resource *iores; int ret; diff --git a/drivers/rtc/rtc-pcf85363.c b/drivers/rtc/rtc-pcf85363.c index b9f0fc6012..d4906bb65d 100644 --- a/drivers/rtc/rtc-pcf85363.c +++ b/drivers/rtc/rtc-pcf85363.c @@ -55,7 +55,7 @@ static inline struct pcf85363 *to_pcf85363_priv(struct rtc_device *rtcdev) static int pcf85363_rtc_read_time(struct rtc_device *rtcdev, struct rtc_time *tm) { - struct device_d *dev = rtcdev->dev; + struct device *dev = rtcdev->dev; struct pcf85363 *pcf85363 = to_pcf85363_priv(rtcdev); unsigned char buf[DT_YEARS + 1]; int ret, len = sizeof(buf); @@ -126,7 +126,7 @@ static const struct regmap_config pcf85363_regmap_i2c_config = { .max_register = 0x7f, }; -static int pcf85363_probe(struct device_d *dev) +static int pcf85363_probe(struct device *dev) { struct i2c_client *client = to_i2c_client(dev); struct pcf85363 *pcf85363; |