Stephen Boyd e4371f6e07 gpiolib: Extract mask allocation into subroutine
We're going to use similar code to allocate and set all the bits in a
mask for valid gpios to use. Extract the code from the irqchip version
so it can be reused.

Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Tested-by: Timur Tabi <timur@codeaurora.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2018-03-27 15:34:07 +02:00
..
2016-03-30 10:38:51 +02:00
2017-10-25 11:25:10 +02:00
2016-02-16 00:19:53 +01:00
2016-12-30 09:18:10 +01:00
2017-10-07 00:01:08 +02:00
2017-12-22 15:24:31 +01:00
2016-09-13 10:35:56 +02:00
2016-12-30 09:18:10 +01:00
2018-01-09 14:51:00 +01:00
2017-08-23 09:21:54 +02:00