From 5a912daf87314fc60a095d886a37cf69e7b876af Mon Sep 17 00:00:00 2001 From: Anant Goel Date: Wed, 25 Sep 2024 14:28:13 -0700 Subject: [PATCH] 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: adf41f47375e ("BACKPORT: OPP: Add dev_pm_opp_add_dynamic() to allow more flexibility") Change-Id: If23af6ba28bb493d619f96846545cb86608b285d Signed-off-by: Anant Goel --- include/linux/pm_opp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h index 38a0d7245fe2..a2900f3a85ab 100644 --- a/include/linux/pm_opp.h +++ b/include/linux/pm_opp.h @@ -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; }