diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2013-12-09 11:38:29 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-12-12 19:11:07 +0100 |
commit | c420619d5177ac8f4a624a2ec6d0ed00b8b64ddb (patch) | |
tree | 175236d03ab00136798e9a26fec057e16e498f45 /drivers/pinctrl/sh-pfc/gpio.c | |
parent | pinctrl: at91: initialize config parameter to 0 (diff) | |
download | linux-c420619d5177ac8f4a624a2ec6d0ed00b8b64ddb.tar.xz linux-c420619d5177ac8f4a624a2ec6d0ed00b8b64ddb.zip |
pinctrl: pinconf: remove checks on ops->pin_config_get
ops->pin_config_get() is only used in one specific path that will only be taken
for generic pinconf drivers (ops->is_generic == true) when dumping the pinconf
by using debugfs.
By removing the check in pinconf_check_ops(), let's stop pressuring people to
write a pin_config_get() function that will never be used and so will probably
never be tested.
Removing the check in pinconf_pins_show() allows driver to not implement
pin_config_get() but still get a dump of the pinconf in debugfs by implementing
pin_config_dbg_show().
Finally, not implementing pin_config_get() now results in returning -ENOTSUPP
instead of -EINVAL. While this doesn't have any real impact for now, this feels
more right.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/gpio.c')
0 files changed, 0 insertions, 0 deletions