mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Maulik Shah](/assets/img/avatar_default.png)
Currently rpmh_invalidate() always returns success. Update its return type to void. Reviewed-by: Lina Iyer <ilina@codeaurora.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Suggested-by: Stephen Boyd <swboyd@chromium.org> Signed-off-by: Maulik Shah <mkshah@codeaurora.org> Link: https://lore.kernel.org/r/1592485553-29163-1-git-send-email-mkshah@codeaurora.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
47 lines
1.2 KiB
C
47 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __SOC_QCOM_RPMH_H__
|
|
#define __SOC_QCOM_RPMH_H__
|
|
|
|
#include <soc/qcom/tcs.h>
|
|
#include <linux/platform_device.h>
|
|
|
|
|
|
#if IS_ENABLED(CONFIG_QCOM_RPMH)
|
|
int rpmh_write(const struct device *dev, enum rpmh_state state,
|
|
const struct tcs_cmd *cmd, u32 n);
|
|
|
|
int rpmh_write_async(const struct device *dev, enum rpmh_state state,
|
|
const struct tcs_cmd *cmd, u32 n);
|
|
|
|
int rpmh_write_batch(const struct device *dev, enum rpmh_state state,
|
|
const struct tcs_cmd *cmd, u32 *n);
|
|
|
|
void rpmh_invalidate(const struct device *dev);
|
|
|
|
#else
|
|
|
|
static inline int rpmh_write(const struct device *dev, enum rpmh_state state,
|
|
const struct tcs_cmd *cmd, u32 n)
|
|
{ return -ENODEV; }
|
|
|
|
static inline int rpmh_write_async(const struct device *dev,
|
|
enum rpmh_state state,
|
|
const struct tcs_cmd *cmd, u32 n)
|
|
{ return -ENODEV; }
|
|
|
|
static inline int rpmh_write_batch(const struct device *dev,
|
|
enum rpmh_state state,
|
|
const struct tcs_cmd *cmd, u32 *n)
|
|
{ return -ENODEV; }
|
|
|
|
static inline void rpmh_invalidate(const struct device *dev)
|
|
{
|
|
}
|
|
|
|
#endif /* CONFIG_QCOM_RPMH */
|
|
|
|
#endif /* __SOC_QCOM_RPMH_H__ */
|