summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-11-11 17:50:36 +0800
committerLinus Walleij <linus.walleij@linaro.org>2016-11-15 10:21:49 +0100
commit51814827190214986c452a166718bf12d32211c7 (patch)
tree2e0097e0d01f4d98c4cc4a82a1d6c2aec8d02e39 /Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt
parentc5fda170e87a4bdaeb278f7e50f7a1f654e94eb5 (diff)
pinctrl: sunxi: Make sunxi_pconf_group_set use sunxi_pconf_reg helper
The sunxi_pconf_reg helper introduced in the last patch gives us the chance to rework sunxi_pconf_group_set to have it match the structure of sunxi_pconf_(group_)get and make it easier to understand. For each config to set, it: 1. checks if the parameter is supported. 2. checks if the argument is within limits. 3. converts argument to the register value. 4. writes to the register with spinlock held. As a result the function now blocks unsupported config parameters, instead of silently ignoring them. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt')
0 files changed, 0 insertions, 0 deletions