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)
commit3836c73e6a2585561af928c6641d74528a8bdfa4
treea6423c457a4f37915cb65672ca44761e9977dcfa
parentce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e
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: cb8c474e79be ("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