Files
kernel_google_redbull/include/soc/qcom/devfreq_devbw.h
Hridya Valsaraju 6205dfc680 Enable modularization of driver for device qcom,devbw
Switch to tristate in Kconfig.

Test: build, boot, all devices probing earlier still probe.
Bug: 142965099
Change-Id: I2d41c4ac8589765ca8d9f02aeff35efcb545e1a0
Signed-off-by: Hridya Valsaraju <hridya@google.com>
2019-10-18 22:11:39 +00:00

36 lines
765 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2014, 2019, The Linux Foundation. All rights reserved.
*/
#ifndef _DEVFREQ_DEVBW_H
#define _DEVFREQ_DEVBW_H
#include <linux/devfreq.h>
#if IS_ENABLED(CONFIG_QCOM_DEVFREQ_DEVBW)
int devfreq_add_devbw(struct device *dev);
int devfreq_remove_devbw(struct device *dev);
int devfreq_suspend_devbw(struct device *dev);
int devfreq_resume_devbw(struct device *dev);
#else
static inline int devfreq_add_devbw(struct device *dev)
{
return 0;
}
static inline int devfreq_remove_devbw(struct device *dev)
{
return 0;
}
static inline int devfreq_suspend_devbw(struct device *dev)
{
return 0;
}
static inline int devfreq_resume_devbw(struct device *dev)
{
return 0;
}
#endif
#endif /* _DEVFREQ_DEVBW_H */