]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f981c70759d62e3a562871c3854d3b96c594d9e
tree77b54828526eca4437d910ab019056fc74f66409
parent0b077e24e7bc0cecd39d2e0ca283ba284bcf5751
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