]> 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)
commit4dab376ac609615413887d7a19bef2a3c27e5fe5
treea6423c457a4f37915cb65672ca44761e9977dcfa
parentc02c8228f39a35a18b7da5bed4327a96bdd1c782
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: eee5b4460bf3 ("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