]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: sim: fix setting and getting multiple lines
authorBartosz Golaszewski <brgl@bgdev.pl>
Wed, 13 Apr 2022 14:01:32 +0000 (16:01 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Thu, 14 Apr 2022 08:29:20 +0000 (10:29 +0200)
commita3164d1bf7c282167be84b54a6b6d66aab63455c
treea6423c457a4f37915cb65672ca44761e9977dcfa
parentef8e7cd3bfb3e514a5772f2c5874cf0913238d68
gpio: sim: fix setting and getting multiple lines

We need to take mask into account in the set/get_multiple() callbacks.
Use bitmap_replace() instead of bitmap_copy().

Fixes: c43e3f54c3df ("gpio: sim: new testing module")
Cc: stable@vger.kernel.org
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpio-sim.c