treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / soc / samsung / exynos5422-asv.h
blob95a5fb1a75088963a6c896c012de9754303d108e
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com/
6 * Samsung Exynos 5422 SoC Adaptive Supply Voltage support
7 */
9 #ifndef __LINUX_SOC_EXYNOS5422_ASV_H
10 #define __LINUX_SOC_EXYNOS5422_ASV_H
12 #include <linux/errno.h>
14 enum {
15 EXYNOS_ASV_SUBSYS_ID_ARM,
16 EXYNOS_ASV_SUBSYS_ID_KFC,
17 EXYNOS_ASV_SUBSYS_ID_MAX
20 struct exynos_asv;
22 #ifdef CONFIG_EXYNOS_ASV_ARM
23 int exynos5422_asv_init(struct exynos_asv *asv);
24 #else
25 static inline int exynos5422_asv_init(struct exynos_asv *asv)
27 return -ENOTSUPP;
29 #endif
31 #endif /* __LINUX_SOC_EXYNOS5422_ASV_H */