Messages in this thread | | | From | Linus Walleij <> | Date | Mon, 10 Feb 2020 12:52:28 +0100 | Subject | Re: [PATCH] GPIO, Fix bug where the wrong GPIO register is written to |
| |
On Sat, Jan 25, 2020 at 11:14 PM Paul Thomas <pthomas8589@gmail.com> wrote:
> 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. > > Signed-off-by: Paul Thomas <pthomas8589@gmail.com> > --- > There are many different ways to correct this, I'd just like it to get > fixed. I've tested this with a 5.2 kernel, but this patch is against > 5.5rc7.
Fixed up the subject and applied, added a tag for stable.
Thanks! Linus Walleij
| |