|
@@ -110,25 +110,25 @@ static inline struct dev_pm_opp *dev_pm_opp_get_suspend_opp(struct device *dev)
|
|
static inline struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev,
|
|
static inline struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev,
|
|
unsigned long freq, bool available)
|
|
unsigned long freq, bool available)
|
|
{
|
|
{
|
|
- return ERR_PTR(-EINVAL);
|
|
|
|
|
|
+ return ERR_PTR(-ENOTSUPP);
|
|
}
|
|
}
|
|
|
|
|
|
static inline struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev,
|
|
static inline struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev,
|
|
unsigned long *freq)
|
|
unsigned long *freq)
|
|
{
|
|
{
|
|
- return ERR_PTR(-EINVAL);
|
|
|
|
|
|
+ return ERR_PTR(-ENOTSUPP);
|
|
}
|
|
}
|
|
|
|
|
|
static inline struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
|
|
static inline struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
|
|
unsigned long *freq)
|
|
unsigned long *freq)
|
|
{
|
|
{
|
|
- return ERR_PTR(-EINVAL);
|
|
|
|
|
|
+ return ERR_PTR(-ENOTSUPP);
|
|
}
|
|
}
|
|
|
|
|
|
static inline int dev_pm_opp_add(struct device *dev, unsigned long freq,
|
|
static inline int dev_pm_opp_add(struct device *dev, unsigned long freq,
|
|
unsigned long u_volt)
|
|
unsigned long u_volt)
|
|
{
|
|
{
|
|
- return -EINVAL;
|
|
|
|
|
|
+ return -ENOTSUPP;
|
|
}
|
|
}
|
|
|
|
|
|
static inline void dev_pm_opp_remove(struct device *dev, unsigned long freq)
|
|
static inline void dev_pm_opp_remove(struct device *dev, unsigned long freq)
|
|
@@ -148,40 +148,40 @@ static inline int dev_pm_opp_disable(struct device *dev, unsigned long freq)
|
|
static inline struct srcu_notifier_head *dev_pm_opp_get_notifier(
|
|
static inline struct srcu_notifier_head *dev_pm_opp_get_notifier(
|
|
struct device *dev)
|
|
struct device *dev)
|
|
{
|
|
{
|
|
- return ERR_PTR(-EINVAL);
|
|
|
|
|
|
+ return ERR_PTR(-ENOTSUPP);
|
|
}
|
|
}
|
|
|
|
|
|
static inline int dev_pm_opp_set_supported_hw(struct device *dev,
|
|
static inline int dev_pm_opp_set_supported_hw(struct device *dev,
|
|
const u32 *versions,
|
|
const u32 *versions,
|
|
unsigned int count)
|
|
unsigned int count)
|
|
{
|
|
{
|
|
- return -EINVAL;
|
|
|
|
|
|
+ return -ENOTSUPP;
|
|
}
|
|
}
|
|
|
|
|
|
static inline void dev_pm_opp_put_supported_hw(struct device *dev) {}
|
|
static inline void dev_pm_opp_put_supported_hw(struct device *dev) {}
|
|
|
|
|
|
static inline int dev_pm_opp_set_prop_name(struct device *dev, const char *name)
|
|
static inline int dev_pm_opp_set_prop_name(struct device *dev, const char *name)
|
|
{
|
|
{
|
|
- return -EINVAL;
|
|
|
|
|
|
+ return -ENOTSUPP;
|
|
}
|
|
}
|
|
|
|
|
|
static inline void dev_pm_opp_put_prop_name(struct device *dev) {}
|
|
static inline void dev_pm_opp_put_prop_name(struct device *dev) {}
|
|
|
|
|
|
static inline int dev_pm_opp_set_regulator(struct device *dev, const char *name)
|
|
static inline int dev_pm_opp_set_regulator(struct device *dev, const char *name)
|
|
{
|
|
{
|
|
- return -EINVAL;
|
|
|
|
|
|
+ return -ENOTSUPP;
|
|
}
|
|
}
|
|
|
|
|
|
static inline void dev_pm_opp_put_regulator(struct device *dev) {}
|
|
static inline void dev_pm_opp_put_regulator(struct device *dev) {}
|
|
|
|
|
|
static inline int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq)
|
|
static inline int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq)
|
|
{
|
|
{
|
|
- return -EINVAL;
|
|
|
|
|
|
+ return -ENOTSUPP;
|
|
}
|
|
}
|
|
|
|
|
|
static inline int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask)
|
|
static inline int dev_pm_opp_set_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask)
|
|
{
|
|
{
|
|
- return -ENOSYS;
|
|
|
|
|
|
+ return -ENOTSUPP;
|
|
}
|
|
}
|
|
|
|
|
|
#endif /* CONFIG_PM_OPP */
|
|
#endif /* CONFIG_PM_OPP */
|
|
@@ -195,7 +195,7 @@ int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask
|
|
#else
|
|
#else
|
|
static inline int dev_pm_opp_of_add_table(struct device *dev)
|
|
static inline int dev_pm_opp_of_add_table(struct device *dev)
|
|
{
|
|
{
|
|
- return -EINVAL;
|
|
|
|
|
|
+ return -ENOTSUPP;
|
|
}
|
|
}
|
|
|
|
|
|
static inline void dev_pm_opp_of_remove_table(struct device *dev)
|
|
static inline void dev_pm_opp_of_remove_table(struct device *dev)
|
|
@@ -204,7 +204,7 @@ static inline void dev_pm_opp_of_remove_table(struct device *dev)
|
|
|
|
|
|
static inline int dev_pm_opp_of_cpumask_add_table(cpumask_var_t cpumask)
|
|
static inline int dev_pm_opp_of_cpumask_add_table(cpumask_var_t cpumask)
|
|
{
|
|
{
|
|
- return -ENOSYS;
|
|
|
|
|
|
+ return -ENOTSUPP;
|
|
}
|
|
}
|
|
|
|
|
|
static inline void dev_pm_opp_of_cpumask_remove_table(cpumask_var_t cpumask)
|
|
static inline void dev_pm_opp_of_cpumask_remove_table(cpumask_var_t cpumask)
|
|
@@ -213,7 +213,7 @@ static inline void dev_pm_opp_of_cpumask_remove_table(cpumask_var_t cpumask)
|
|
|
|
|
|
static inline int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask)
|
|
static inline int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, cpumask_var_t cpumask)
|
|
{
|
|
{
|
|
- return -ENOSYS;
|
|
|
|
|
|
+ return -ENOTSUPP;
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|