Linus Walleij | ae6b4d8 | 2011-10-19 18:14:33 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Internal interface between the core pin control system and the |
| 3 | * pin config portions |
| 4 | * |
| 5 | * Copyright (C) 2011 ST-Ericsson SA |
| 6 | * Written on behalf of Linaro for ST-Ericsson |
| 7 | * Based on bits of regulator core, gpio core and clk core |
| 8 | * |
| 9 | * Author: Linus Walleij <linus.walleij@linaro.org> |
| 10 | * |
| 11 | * License terms: GNU General Public License (GPL) version 2 |
| 12 | */ |
| 13 | |
| 14 | #ifdef CONFIG_PINCONF |
| 15 | |
Tony Lindgren | b9130b7 | 2012-01-24 16:28:08 -0800 | [diff] [blame] | 16 | int pinconf_check_ops(struct pinctrl_dev *pctldev); |
Stephen Warren | 2b69425 | 2012-02-19 23:45:46 -0700 | [diff] [blame^] | 17 | |
Linus Walleij | ae6b4d8 | 2011-10-19 18:14:33 +0200 | [diff] [blame] | 18 | void pinconf_init_device_debugfs(struct dentry *devroot, |
| 19 | struct pinctrl_dev *pctldev); |
Linus Walleij | ae6b4d8 | 2011-10-19 18:14:33 +0200 | [diff] [blame] | 20 | |
| 21 | #else |
| 22 | |
Tony Lindgren | b9130b7 | 2012-01-24 16:28:08 -0800 | [diff] [blame] | 23 | static inline int pinconf_check_ops(struct pinctrl_dev *pctldev) |
Linus Walleij | ae6b4d8 | 2011-10-19 18:14:33 +0200 | [diff] [blame] | 24 | { |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | static inline void pinconf_init_device_debugfs(struct dentry *devroot, |
| 29 | struct pinctrl_dev *pctldev) |
| 30 | { |
| 31 | } |
| 32 | |
| 33 | #endif |