Linus Walleij | 2744e8a | 2011-05-02 20:50:54 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Internal interface between the core pin control system and the |
| 3 | * pinmux 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 | #ifdef CONFIG_PINMUX |
| 14 | |
Tony Lindgren | b9130b7 | 2012-01-24 16:28:08 -0800 | [diff] [blame] | 15 | int pinmux_check_ops(struct pinctrl_dev *pctldev); |
Linus Walleij | 2744e8a | 2011-05-02 20:50:54 +0200 | [diff] [blame] | 16 | void pinmux_init_device_debugfs(struct dentry *devroot, |
| 17 | struct pinctrl_dev *pctldev); |
| 18 | void pinmux_init_debugfs(struct dentry *subsys_root); |
| 19 | int pinmux_hog_maps(struct pinctrl_dev *pctldev); |
| 20 | void pinmux_unhog_maps(struct pinctrl_dev *pctldev); |
| 21 | |
| 22 | #else |
| 23 | |
Tony Lindgren | b9130b7 | 2012-01-24 16:28:08 -0800 | [diff] [blame] | 24 | static inline int pinmux_check_ops(struct pinctrl_dev *pctldev) |
Linus Walleij | 2744e8a | 2011-05-02 20:50:54 +0200 | [diff] [blame] | 25 | { |
| 26 | return 0; |
| 27 | } |
| 28 | |
| 29 | static inline void pinmux_init_device_debugfs(struct dentry *devroot, |
| 30 | struct pinctrl_dev *pctldev) |
| 31 | { |
| 32 | } |
| 33 | |
| 34 | static inline void pinmux_init_debugfs(struct dentry *subsys_root) |
| 35 | { |
| 36 | } |
| 37 | |
| 38 | static inline int pinmux_hog_maps(struct pinctrl_dev *pctldev) |
| 39 | { |
| 40 | return 0; |
| 41 | } |
| 42 | |
| 43 | static inline void pinmux_unhog_maps(struct pinctrl_dev *pctldev) |
| 44 | { |
| 45 | } |
| 46 | |
| 47 | #endif |