mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
PM: domains: replace -ENOTSUPP with -EOPNOTSUPP
While submitting a patch to add next_wakeup, checkpatch reported this - WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP + return -ENOTSUPP; Address the above warning in other functions in pm_domain.h. Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Lina Iyer <ilina@codeaurora.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
418baf2c28
commit
a94ef811f7
@@ -255,24 +255,24 @@ static inline int pm_genpd_init(struct generic_pm_domain *genpd,
|
|||||||
}
|
}
|
||||||
static inline int pm_genpd_remove(struct generic_pm_domain *genpd)
|
static inline int pm_genpd_remove(struct generic_pm_domain *genpd)
|
||||||
{
|
{
|
||||||
return -ENOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int dev_pm_genpd_set_performance_state(struct device *dev,
|
static inline int dev_pm_genpd_set_performance_state(struct device *dev,
|
||||||
unsigned int state)
|
unsigned int state)
|
||||||
{
|
{
|
||||||
return -ENOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int dev_pm_genpd_add_notifier(struct device *dev,
|
static inline int dev_pm_genpd_add_notifier(struct device *dev,
|
||||||
struct notifier_block *nb)
|
struct notifier_block *nb)
|
||||||
{
|
{
|
||||||
return -ENOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int dev_pm_genpd_remove_notifier(struct device *dev)
|
static inline int dev_pm_genpd_remove_notifier(struct device *dev)
|
||||||
{
|
{
|
||||||
return -ENOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define simple_qos_governor (*(struct dev_power_governor *)(NULL))
|
#define simple_qos_governor (*(struct dev_power_governor *)(NULL))
|
||||||
@@ -325,13 +325,13 @@ struct device *genpd_dev_pm_attach_by_name(struct device *dev,
|
|||||||
static inline int of_genpd_add_provider_simple(struct device_node *np,
|
static inline int of_genpd_add_provider_simple(struct device_node *np,
|
||||||
struct generic_pm_domain *genpd)
|
struct generic_pm_domain *genpd)
|
||||||
{
|
{
|
||||||
return -ENOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int of_genpd_add_provider_onecell(struct device_node *np,
|
static inline int of_genpd_add_provider_onecell(struct device_node *np,
|
||||||
struct genpd_onecell_data *data)
|
struct genpd_onecell_data *data)
|
||||||
{
|
{
|
||||||
return -ENOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void of_genpd_del_provider(struct device_node *np) {}
|
static inline void of_genpd_del_provider(struct device_node *np) {}
|
||||||
@@ -387,7 +387,7 @@ static inline struct device *genpd_dev_pm_attach_by_name(struct device *dev,
|
|||||||
static inline
|
static inline
|
||||||
struct generic_pm_domain *of_genpd_remove_last(struct device_node *np)
|
struct generic_pm_domain *of_genpd_remove_last(struct device_node *np)
|
||||||
{
|
{
|
||||||
return ERR_PTR(-ENOTSUPP);
|
return ERR_PTR(-EOPNOTSUPP);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_PM_GENERIC_DOMAINS_OF */
|
#endif /* CONFIG_PM_GENERIC_DOMAINS_OF */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user