summaryrefslogtreecommitdiffstats
path: root/include/pm_domain.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-12-14 13:35:09 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-01-10 15:43:47 +0100
commitc0afc799fb9a19a11f651596fe23b4b755593887 (patch)
tree9c27f1533193d31757744b22b2af9186d23e67ed /include/pm_domain.h
parente70b9d7a74698f1374244b2251216428db920aed (diff)
downloadbarebox-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 'include/pm_domain.h')
-rw-r--r--include/pm_domain.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/pm_domain.h b/include/pm_domain.h
index ff1aa37511..fac7f99227 100644
--- a/include/pm_domain.h
+++ b/include/pm_domain.h
@@ -23,7 +23,7 @@ typedef struct generic_pm_domain *(*genpd_xlate_t)(struct of_phandle_args *args,
#ifdef CONFIG_PM_GENERIC_DOMAINS
-int genpd_dev_pm_attach(struct device_d *dev);
+int genpd_dev_pm_attach(struct device *dev);
/**
* dev_pm_domain_attach - Attach a device to its PM domain.
@@ -44,7 +44,7 @@ int genpd_dev_pm_attach(struct device_d *dev);
*
* Returns 0 on successfully attached PM domain or negative error code.
*/
-static inline int dev_pm_domain_attach(struct device_d *dev, bool power_on)
+static inline int dev_pm_domain_attach(struct device *dev, bool power_on)
{
return genpd_dev_pm_attach(dev);
}
@@ -64,12 +64,12 @@ static inline int pm_genpd_init(struct generic_pm_domain *genpd,
return -ENOSYS;
}
-static inline int genpd_dev_pm_attach(struct device_d *dev)
+static inline int genpd_dev_pm_attach(struct device *dev)
{
return 0;
}
-static inline int dev_pm_domain_attach(struct device_d *dev, bool power_on)
+static inline int dev_pm_domain_attach(struct device *dev, bool power_on)
{
return 0;
}