commit | e4371f6e079294369ecb4cfa03aaeb60831e8b91 | [log] [tgz] |
---|---|---|
author | Stephen Boyd <swboyd@chromium.org> | Fri Mar 23 09:34:50 2018 -0700 |
committer | Linus Walleij <linus.walleij@linaro.org> | Tue Mar 27 15:34:07 2018 +0200 |
tree | 8ee1a67f3f0f91859b1b9a5335ec5464fc71e59e | |
parent | b9c725ed73b7cecc7c9bc4b752ab3eb975ef9330 [diff] |
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>