Re: [PATCH] gpio: refactor gpiochip_allocate_mask() with bitmap_alloc()

2019-08-02 Thread Linus Walleij
On Thu, Jul 18, 2019 at 8:51 AM Masahiro Yamada wrote: > Refactor gpiochip_allocate_mask() slightly by using bitmap_alloc(). > > I used bitmap_free() for the corresponding free parts. Actually, > bitmap_free() is a wrapper of kfree(), but I did this for consistency. > > Signed-off-by: Masahiro

Re: [PATCH] gpio: refactor gpiochip_allocate_mask() with bitmap_alloc()

2019-07-18 Thread Stephen Boyd
Quoting Masahiro Yamada (2019-07-17 23:51:01) > Refactor gpiochip_allocate_mask() slightly by using bitmap_alloc(). > > I used bitmap_free() for the corresponding free parts. Actually, > bitmap_free() is a wrapper of kfree(), but I did this for consistency. > > Signed-off-by: Masahiro Yamada >

[PATCH] gpio: refactor gpiochip_allocate_mask() with bitmap_alloc()

2019-07-18 Thread Masahiro Yamada
Refactor gpiochip_allocate_mask() slightly by using bitmap_alloc(). I used bitmap_free() for the corresponding free parts. Actually, bitmap_free() is a wrapper of kfree(), but I did this for consistency. Signed-off-by: Masahiro Yamada --- drivers/gpio/gpiolib.c | 6 +++--- 1 file changed, 3