Skip to content
Commit c3afa804 authored by Paul Thomas's avatar Paul Thomas Committed by Linus Walleij
Browse files

gpio: xilinx: Fix bug where the wrong GPIO register is written to



Care is taken with "index", however with the current version
the actual xgpio_writereg is using index for data but
xgpio_regoffset(chip, i) for the offset. And since i is already
incremented it is incorrect. This patch fixes it so that index
is used for the offset too.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarPaul Thomas <pthomas8589@gmail.com>
Link: https://lore.kernel.org/r/20200125221410.8022-1-pthomas8589@gmail.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent dee7c111
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment