mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
ANDROID: OPP: fix function args mismatch for dev_pm_opp_add in pm_opp.h
The function prototype for dev_pm_opp_add differs between a
configuration when CONFIG_PM_OPP is set versus when CONFIG_PM_OPP is not
set.
Fix this mismatch by aligning the function arguments for the dummy
dev_pm_opp_add with the non-dummy version.
Bug: 369659366
Fixes: adf41f4737 ("BACKPORT: OPP: Add dev_pm_opp_add_dynamic() to allow more flexibility")
Change-Id: If23af6ba28bb493d619f96846545cb86608b285d
Signed-off-by: Anant Goel <quic_anantg@quicinc.com>
This commit is contained in:
committed by
Treehugger Robot
parent
bcc435d374
commit
5a912daf87
@@ -311,7 +311,7 @@ dev_pm_opp_add_dynamic(struct device *dev, struct dev_pm_opp_data *opp)
|
||||
}
|
||||
|
||||
static inline int
|
||||
dev_pm_opp_add(struct device *dev, struct dev_pm_opp_data *opp, unsigned long u_volt)
|
||||
dev_pm_opp_add(struct device *dev, unsigned long freq, unsigned long u_volt)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user