aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pinctrl/pinconf.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-04-13 12:49:06 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-04-18 07:53:12 -0400
commit6cb4158757a8629e14851e7802f3b6bfaa7d6f00 (patch)
treec872640d7ec45d37fac2e1978418d5a92b5ef527 /include/linux/pinctrl/pinconf.h
parentc736d73c9e6d9849ecb08c34c1d3917b210e8f38 (diff)
pinctrl: allow pctldevs to decode pin config in debugfs
Add a pinconf op so that pin controller drivers can decode their pin config settings for debugfs. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl/pinconf.h')
-rw-r--r--include/linux/pinctrl/pinconf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pinctrl/pinconf.h b/include/linux/pinctrl/pinconf.h
index ec431f03362d..7b9d5f00ed37 100644
--- a/include/linux/pinctrl/pinconf.h
+++ b/include/linux/pinctrl/pinconf.h
@@ -33,6 +33,8 @@ struct seq_file;
33 * per-device info for a certain pin in debugfs 33 * per-device info for a certain pin in debugfs
34 * @pin_config_group_dbg_show: optional debugfs display hook that will provide 34 * @pin_config_group_dbg_show: optional debugfs display hook that will provide
35 * per-device info for a certain group in debugfs 35 * per-device info for a certain group in debugfs
36 * @pin_config_config_dbg_show: optional debugfs display hook that will decode
37 * and display a driver's pin configuration parameter
36 */ 38 */
37struct pinconf_ops { 39struct pinconf_ops {
38#ifdef CONFIG_GENERIC_PINCONF 40#ifdef CONFIG_GENERIC_PINCONF
@@ -56,6 +58,9 @@ struct pinconf_ops {
56 void (*pin_config_group_dbg_show) (struct pinctrl_dev *pctldev, 58 void (*pin_config_group_dbg_show) (struct pinctrl_dev *pctldev,
57 struct seq_file *s, 59 struct seq_file *s,
58 unsigned selector); 60 unsigned selector);
61 void (*pin_config_config_dbg_show) (struct pinctrl_dev *pctldev,
62 struct seq_file *s,
63 unsigned long config);
59}; 64};
60 65
61#endif 66#endif