diff options
author | Chen-Yu Tsai <wens@csie.org> | 2016-11-11 10:50:36 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-11-15 10:21:49 +0100 |
commit | 51814827190214986c452a166718bf12d32211c7 (patch) | |
tree | 2e0097e0d01f4d98c4cc4a82a1d6c2aec8d02e39 /kernel/irq/internals.h | |
parent | pinctrl: sunxi: Add support for fetching pinconf settings from hardware (diff) | |
download | linux-51814827190214986c452a166718bf12d32211c7.tar.xz linux-51814827190214986c452a166718bf12d32211c7.zip |
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 'kernel/irq/internals.h')
0 files changed, 0 insertions, 0 deletions