summaryrefstree
path: root/kernel/include/soc/qcom/devfreq_icc.h
blob: f64d12386d813ef239fcfd7a0d6994fe4a1ce469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* 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);
int devfreq_suspend_icc(struct device *dev);
int devfreq_resume_icc(struct device *dev);
#else
static inline int devfreq_add_icc(struct device *dev)
{
	return 0;
}
static inline int devfreq_remove_icc(struct device *dev)
{
	return 0;
}
static inline int devfreq_suspend_icc(struct device *dev)
{
	return 0;
}
static inline int devfreq_resume_icc(struct device *dev)
{
	return 0;
}
#endif

#endif /* _DEVFREQ_ICC_H */