diff mbox series

PM / Domains: Align in-parameter names for some genpd functions

Message ID 20190716094320.20091-1-ulf.hansson@linaro.org
State Accepted
Commit 0d1e16c640ee67dcae65ae8e3c6f58e6d8101047
Headers show
Series PM / Domains: Align in-parameter names for some genpd functions | expand

Commit Message

Ulf Hansson July 16, 2019, 9:43 a.m. UTC
Align in-parameter names for the declarations of pm_genpd_add|
remove_subdomain() and of_genpd_add_subdomain() according to their
implementations, as to improve consistency.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

---
 include/linux/pm_domain.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

-- 
2.17.1

Comments

Rafael J. Wysocki Aug. 26, 2019, 9:12 a.m. UTC | #1
On Tuesday, July 16, 2019 11:43:20 AM CEST Ulf Hansson wrote:
> Align in-parameter names for the declarations of pm_genpd_add|

> remove_subdomain() and of_genpd_add_subdomain() according to their

> implementations, as to improve consistency.

> 

> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

> ---

>  include/linux/pm_domain.h | 16 ++++++++--------

>  1 file changed, 8 insertions(+), 8 deletions(-)

> 

> diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h

> index 91d9bf497071..baf02ff91a31 100644

> --- a/include/linux/pm_domain.h

> +++ b/include/linux/pm_domain.h

> @@ -197,9 +197,9 @@ static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev)

>  int pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev);

>  int pm_genpd_remove_device(struct device *dev);

>  int pm_genpd_add_subdomain(struct generic_pm_domain *genpd,

> -			   struct generic_pm_domain *new_subdomain);

> +			   struct generic_pm_domain *subdomain);

>  int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd,

> -			      struct generic_pm_domain *target);

> +			      struct generic_pm_domain *subdomain);

>  int pm_genpd_init(struct generic_pm_domain *genpd,

>  		  struct dev_power_governor *gov, bool is_off);

>  int pm_genpd_remove(struct generic_pm_domain *genpd);

> @@ -226,12 +226,12 @@ static inline int pm_genpd_remove_device(struct device *dev)

>  	return -ENOSYS;

>  }

>  static inline int pm_genpd_add_subdomain(struct generic_pm_domain *genpd,

> -					 struct generic_pm_domain *new_sd)

> +					 struct generic_pm_domain *subdomain)

>  {

>  	return -ENOSYS;

>  }

>  static inline int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd,

> -					    struct generic_pm_domain *target)

> +					    struct generic_pm_domain *subdomain)

>  {

>  	return -ENOSYS;

>  }

> @@ -282,8 +282,8 @@ int of_genpd_add_provider_onecell(struct device_node *np,

>  				  struct genpd_onecell_data *data);

>  void of_genpd_del_provider(struct device_node *np);

>  int of_genpd_add_device(struct of_phandle_args *args, struct device *dev);

> -int of_genpd_add_subdomain(struct of_phandle_args *parent,

> -			   struct of_phandle_args *new_subdomain);

> +int of_genpd_add_subdomain(struct of_phandle_args *parent_spec,

> +			   struct of_phandle_args *subdomain_spec);

>  struct generic_pm_domain *of_genpd_remove_last(struct device_node *np);

>  int of_genpd_parse_idle_states(struct device_node *dn,

>  			       struct genpd_power_state **states, int *n);

> @@ -316,8 +316,8 @@ static inline int of_genpd_add_device(struct of_phandle_args *args,

>  	return -ENODEV;

>  }

>  

> -static inline int of_genpd_add_subdomain(struct of_phandle_args *parent,

> -					 struct of_phandle_args *new_subdomain)

> +static inline int of_genpd_add_subdomain(struct of_phandle_args *parent_spec,

> +					 struct of_phandle_args *subdomain_spec)

>  {

>  	return -ENODEV;

>  }

> 


Applied, thanks!
diff mbox series

Patch

diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index 91d9bf497071..baf02ff91a31 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -197,9 +197,9 @@  static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev)
 int pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev);
 int pm_genpd_remove_device(struct device *dev);
 int pm_genpd_add_subdomain(struct generic_pm_domain *genpd,
-			   struct generic_pm_domain *new_subdomain);
+			   struct generic_pm_domain *subdomain);
 int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd,
-			      struct generic_pm_domain *target);
+			      struct generic_pm_domain *subdomain);
 int pm_genpd_init(struct generic_pm_domain *genpd,
 		  struct dev_power_governor *gov, bool is_off);
 int pm_genpd_remove(struct generic_pm_domain *genpd);
@@ -226,12 +226,12 @@  static inline int pm_genpd_remove_device(struct device *dev)
 	return -ENOSYS;
 }
 static inline int pm_genpd_add_subdomain(struct generic_pm_domain *genpd,
-					 struct generic_pm_domain *new_sd)
+					 struct generic_pm_domain *subdomain)
 {
 	return -ENOSYS;
 }
 static inline int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd,
-					    struct generic_pm_domain *target)
+					    struct generic_pm_domain *subdomain)
 {
 	return -ENOSYS;
 }
@@ -282,8 +282,8 @@  int of_genpd_add_provider_onecell(struct device_node *np,
 				  struct genpd_onecell_data *data);
 void of_genpd_del_provider(struct device_node *np);
 int of_genpd_add_device(struct of_phandle_args *args, struct device *dev);
-int of_genpd_add_subdomain(struct of_phandle_args *parent,
-			   struct of_phandle_args *new_subdomain);
+int of_genpd_add_subdomain(struct of_phandle_args *parent_spec,
+			   struct of_phandle_args *subdomain_spec);
 struct generic_pm_domain *of_genpd_remove_last(struct device_node *np);
 int of_genpd_parse_idle_states(struct device_node *dn,
 			       struct genpd_power_state **states, int *n);
@@ -316,8 +316,8 @@  static inline int of_genpd_add_device(struct of_phandle_args *args,
 	return -ENODEV;
 }
 
-static inline int of_genpd_add_subdomain(struct of_phandle_args *parent,
-					 struct of_phandle_args *new_subdomain)
+static inline int of_genpd_add_subdomain(struct of_phandle_args *parent_spec,
+					 struct of_phandle_args *subdomain_spec)
 {
 	return -ENODEV;
 }