2019-01-16 21:09:59 -05:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2014, 2019, The Linux Foundation. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DEVFREQ_ICC_H
|
|
|
|
#define _DEVFREQ_ICC_H
|
|
|
|
|
|
|
|
#include <linux/devfreq.h>
|
|
|
|
|
|
|
|
#ifdef CONFIG_QCOM_DEVFREQ_ICC
|
|
|
|
int devfreq_add_icc(struct device *dev);
|
|
|
|
int devfreq_remove_icc(struct device *dev);
|
2019-01-16 21:20:08 -05:00
|
|
|
int devfreq_suspend_icc(struct device *dev);
|
|
|
|
int devfreq_resume_icc(struct device *dev);
|
2019-01-16 21:09:59 -05:00
|
|
|
#else
|
|
|
|
static inline int devfreq_add_icc(struct device *dev)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
static inline int devfreq_remove_icc(struct device *dev)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2019-01-16 21:20:08 -05:00
|
|
|
static inline int devfreq_suspend_icc(struct device *dev)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
static inline int devfreq_resume_icc(struct device *dev)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2019-01-16 21:09:59 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _DEVFREQ_ICC_H */
|