OSDN Git Service

pinctrl: move pinctrl-maps debugfs file to top-level
authorStephen Warren <swarren@nvidia.com>
Fri, 24 Feb 2012 00:04:40 +0000 (17:04 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Feb 2012 18:10:56 +0000 (19:10 +0100)
commit3eedb4372354a70ce63c9f4ec294d2eba0d79d17
treecb9159674023e9e38d783978dac0e9678b3eee4c
parent806d314325812fb8ffe7059bd84a23d334350c21
pinctrl: move pinctrl-maps debugfs file to top-level

The debugfs file pinctrl-maps is a system-wide file, not specific to any
pin controller, so place it in the top-level directory.

Also, move the code implementing the file to keep the order of all the
functions matching the order they're created in pinctrl_init_*debugfs().
The only non-obvious change here is no private data is passed to
debugfs_create_file() or single_open().

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c