aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/soc
diff options
context:
space:
mode:
authorMaulik Shah <[email protected]>2020-06-18 18:35:53 +0530
committerBjorn Andersson <[email protected]>2020-06-22 14:23:46 -0700
commit73edcd38d7720bb6a761966ea14c0bc64e95dc26 (patch)
tree85e566fa1145762c3e0c8e07738ff07dc415746e /include/soc
parentsoc: qcom: rpmh: Allow RPMH on ARM SoC (diff)
downloadwireguard-linux-73edcd38d7720bb6a761966ea14c0bc64e95dc26.tar.xz
wireguard-linux-73edcd38d7720bb6a761966ea14c0bc64e95dc26.zip
soc: qcom: rpmh: Update rpmh_invalidate function to return void
Currently rpmh_invalidate() always returns success. Update its return type to void. Reviewed-by: Lina Iyer <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Suggested-by: Stephen Boyd <[email protected]> Signed-off-by: Maulik Shah <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/qcom/rpmh.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/soc/qcom/rpmh.h b/include/soc/qcom/rpmh.h
index f9ec353d24a5..bdbee1a97d36 100644
--- a/include/soc/qcom/rpmh.h
+++ b/include/soc/qcom/rpmh.h
@@ -20,7 +20,7 @@ int rpmh_write_async(const struct device *dev, enum rpmh_state state,
int rpmh_write_batch(const struct device *dev, enum rpmh_state state,
const struct tcs_cmd *cmd, u32 *n);
-int rpmh_invalidate(const struct device *dev);
+void rpmh_invalidate(const struct device *dev);
#else
@@ -38,8 +38,9 @@ static inline int rpmh_write_batch(const struct device *dev,
const struct tcs_cmd *cmd, u32 *n)
{ return -ENODEV; }
-static inline int rpmh_invalidate(const struct device *dev)
-{ return -ENODEV; }
+static inline void rpmh_invalidate(const struct device *dev)
+{
+}
#endif /* CONFIG_QCOM_RPMH */
OSZAR »