Merge branch 'dma_slave_direction' into next_test_dirn
[linux-2.6.git] / drivers / pinctrl / pinmux.h
blob844500b3331bf8ee53ce5a3ae95f806c494e9372
1 /*
2 * Internal interface between the core pin control system and the
3 * pinmux portions
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
9 * Author: Linus Walleij <linus.walleij@linaro.org>
11 * License terms: GNU General Public License (GPL) version 2
13 #ifdef CONFIG_PINMUX
15 int pinmux_check_ops(const struct pinmux_ops *ops);
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);
22 #else
24 static inline int pinmux_check_ops(const struct pinmux_ops *ops)
26 return 0;
29 static inline void pinmux_init_device_debugfs(struct dentry *devroot,
30 struct pinctrl_dev *pctldev)
34 static inline void pinmux_init_debugfs(struct dentry *subsys_root)
38 static inline int pinmux_hog_maps(struct pinctrl_dev *pctldev)
40 return 0;
43 static inline void pinmux_unhog_maps(struct pinctrl_dev *pctldev)
47 #endif