linux/drivers/pinctrl
John Crispin ad6e1107ba pinctrl: enhance reporting of errors when loading from DT
There are a few places in the api where the code simply returns -EINVAL when
it finds an error. An example is pinmux_map_to_setting() which now reports an
error if we try to match a group with a function that it does not support.

The reporting of errors in pinconf_check_ops and pinmux_check_ops now has the
same style and is located inside the according functions and not the calling
code.

When the map is found in the DT but the default state can not be selected we
get an error to know that the code at least tried.

The patch also removes a stray word from one comment and a "->" from another
for the sake of consistency.

Finally we replace a few pr_err/debug() calls with dev_err/dbg().

Thanks go to Stephen Warren for reviewing the patch and enhancing the reporting
inside pinmux_map_to_setting().

Signed-off-by: John Crispin <blogic@openwrt.org>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2012-04-26 23:11:04 +02:00
..
core.c pinctrl: enhance reporting of errors when loading from DT 2012-04-26 23:11:04 +02:00
core.h pinctrl: show pin name for pingroups in sysfs 2012-04-18 13:53:13 +02:00
devicetree.c pinctrl: implement pinctrl deferred probing 2012-04-18 13:53:11 +02:00
devicetree.h pinctrl: core device tree mapping table parsing support 2012-04-18 13:53:10 +02:00
Kconfig pinctrl: mark non-EXPERIMENTAL 2012-04-18 13:53:12 +02:00
Makefile pinctrl: fix build when CONFIG_OF && !CONFIG_PINCTRL 2012-04-18 13:53:10 +02:00
pinconf-generic.c pinctrl: introduce generic pin config 2012-03-12 22:49:02 +01:00
pinconf.c pinctrl: enhance reporting of errors when loading from DT 2012-04-26 23:11:04 +02:00
pinconf.h pinctrl: pinconf: fix compilation error if PINCONF is not selected 2012-04-18 13:53:12 +02:00
pinctrl-coh901.c pinctrl: mark const init data with __initconst instead of __initdata 2012-04-18 13:53:10 +02:00
pinctrl-coh901.h pinctrl: support pinconfig on the U300 2012-03-12 22:49:03 +01:00
pinctrl-mmp2.c pinctrl: enable pinmux for mmp series 2012-02-01 19:42:35 +01:00
pinctrl-pxa3xx.c pinctrl: replace list_*() with get_*_count() 2012-04-18 13:53:10 +02:00
pinctrl-pxa3xx.h pinctrl: enable pinmux for mmp series 2012-02-01 19:42:35 +01:00
pinctrl-pxa168.c pinctrl: enable pinmux for mmp series 2012-02-01 19:42:35 +01:00
pinctrl-pxa910.c pinctrl: enable pinmux for mmp series 2012-02-01 19:42:35 +01:00
pinctrl-sirf.c pinctrl: replace list_*() with get_*_count() 2012-04-18 13:53:10 +02:00
pinctrl-tegra.c pinctrl: tegra: Add complete device tree support 2012-04-18 13:53:12 +02:00
pinctrl-tegra.h pinctrl: add a driver for NVIDIA Tegra 2012-03-06 10:51:46 +01:00
pinctrl-tegra20.c pinctrl: add a driver for NVIDIA Tegra 2012-03-06 10:51:46 +01:00
pinctrl-tegra30.c pinctrl: add a driver for NVIDIA Tegra 2012-03-06 10:51:46 +01:00
pinctrl-u300.c pinctrl: replace list_*() with get_*_count() 2012-04-18 13:53:10 +02:00
pinmux.c pinctrl: enhance reporting of errors when loading from DT 2012-04-26 23:11:04 +02:00
pinmux.h pinctrl: ifdef CONFIG_DEBUG_FS cleanup 2012-04-18 13:53:12 +02:00