]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: sx150x: use correct registers for reg_sense (sx1502 and sx1508)
authorPeter Rosin <peda@axentia.se>
Thu, 24 Nov 2016 20:45:18 +0000 (21:45 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 25 Nov 2016 13:40:06 +0000 (14:40 +0100)
commit8ed848e447e32e8e17438b8ae029e58dd4b14f99
tree7ff34bba9d58b9fdbac741fd5564a3f3c8859b99
parent0499d3b42552a650aa6ca2f5efbaf587081f9ed8
pinctrl: sx150x: use correct registers for reg_sense (sx1502 and sx1508)

All other registers on these chips are 8-bit, but reg_sense is 16-bits
and therefore needs to be moved down one notch.
This was apparently overlooked in the conversion to regmap, which only
updated the register locations for the 16-bit chips.

Fixes: 83340e64f0ea ("pinctrl-sx150x: Replace sx150x_*_cfg by means of regmap API")
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-sx150x.c