Asish Bhattacharya | 8e2277f | 2017-07-20 18:31:55 +0530 | [diff] [blame] | 1 | /* 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) |
| 20 | extern int msm_cdc_pinctrl_select_sleep_state(struct device_node *np); |
| 21 | extern int msm_cdc_pinctrl_select_active_state(struct device_node *np); |
| 22 | extern bool msm_cdc_pinctrl_get_state(struct device_node *np); |
| 23 | extern int msm_cdc_get_gpio_state(struct device_node *np); |
| 24 | int msm_cdc_pinctrl_drv_init(void); |
| 25 | void msm_cdc_pinctrl_drv_exit(void); |
| 26 | |
| 27 | #else |
| 28 | int msm_cdc_pinctrl_select_sleep_state(struct device_node *np) |
| 29 | { |
| 30 | return 0; |
| 31 | } |
| 32 | int msm_cdc_pinctrl_select_active_state(struct device_node *np) |
| 33 | { |
| 34 | return 0; |
| 35 | } |
| 36 | int msm_cdc_get_gpio_state(struct device_node *np) |
| 37 | { |
| 38 | return 0; |
| 39 | } |
| 40 | int msm_cdc_pinctrl_drv_init(void) |
| 41 | { |
| 42 | return 0; |
| 43 | } |
| 44 | void msm_cdc_pinctrl_drv_exit(void) |
| 45 | { |
| 46 | } |
| 47 | #endif |
| 48 | |
| 49 | #endif |