]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/pinctrl/pinctrl-sx150x.c
pinctrl: sx150x: support setting multiple pins at once
authorPeter Rosin <peda@axentia.se>
Wed, 23 Nov 2016 10:18:51 +0000 (11:18 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 24 Nov 2016 14:07:44 +0000 (15:07 +0100)
commitec61168bc0bc03a6e7da3802ac41a113ed6c8160
tree77b54828526eca4437d910ab019056fc74f66409
parent7bd474963a4826af91a72bf12bb57cc79f8b6ad7
pinctrl: sx150x: support setting multiple pins at once

If the chip does not have an oscio pin, all pins are configured in
the same regmap register making it trivial to update all pins at
once, so do that. If an oscio pin is present, there needs to be
more locking in place to handle all cases correctly, so this is
skipped.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-sx150x.c