blob: 7eabefb80e19e39c901da617fb6e18ffe5e8f81e [file] [log] [blame]
Asish Bhattacharya8e2277f2017-07-20 18:31:55 +05301/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef __MFD_CDC_PINCTRL_H_
14#define __MFD_CDC_PINCTRL_H_
15
16#include <linux/types.h>
17#include <linux/of.h>
18
19#if IS_ENABLED(CONFIG_MSM_CDC_PINCTRL)
20extern int msm_cdc_pinctrl_select_sleep_state(struct device_node *np);
21extern int msm_cdc_pinctrl_select_active_state(struct device_node *np);
22extern bool msm_cdc_pinctrl_get_state(struct device_node *np);
23extern int msm_cdc_get_gpio_state(struct device_node *np);
24int msm_cdc_pinctrl_drv_init(void);
25void msm_cdc_pinctrl_drv_exit(void);
26
27#else
28int msm_cdc_pinctrl_select_sleep_state(struct device_node *np)
29{
30 return 0;
31}
32int msm_cdc_pinctrl_select_active_state(struct device_node *np)
33{
34 return 0;
35}
36int msm_cdc_get_gpio_state(struct device_node *np)
37{
38 return 0;
39}
40int msm_cdc_pinctrl_drv_init(void)
41{
42 return 0;
43}
44void msm_cdc_pinctrl_drv_exit(void)
45{
46}
47#endif
48
49#endif