commit | f8ec92a9f63b3b11e399409141b7868bb405e6b5 | [log] [tgz] |
---|---|---|
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | Fri Oct 05 08:52:58 2018 +0200 |
committer | Linus Walleij <linus.walleij@linaro.org> | Wed Oct 10 10:31:40 2018 +0200 |
tree | d1771589a157dc6bf83d67364a7c5dd64f8f1d69 | |
parent | 2505c7b0128f63289a59d77ee39cacd08aacf779 [diff] |
gpiolib: Add init_valid_mask exported function Add a function that allows initializing the valid_mask from gpiochip_add_data. This prevents race conditions during gpiochip initialization. If the function is not exported, then the old behaviour is respected, this is, set all gpios as valid. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Tested-by: Jeffrey Hugo <jhugo@codeaurora.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>