]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: Pass mask and size with the init_valid_mask()
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 19 Aug 2019 08:49:04 +0000 (10:49 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Aug 2019 08:42:07 +0000 (10:42 +0200)
commitc9fc5aff217267a9ef3a76450760534488870c69
tree1c8b4524bf17212b29aeda1020f76e83bdc3a27d
parentf52a0c7b5eb907a12bc08a33cc998ed02dad3507
gpio: Pass mask and size with the init_valid_mask()

It is more helpful for drivers to have the affected fields
directly available when we use the callback to set up the
valid mask. Change this and switch over the only user
(MSM) to use the passed parameters. If we do this we can
also move the mask out of publicly visible struct fields.

Cc: Stephen Boyd <swboyd@chromium.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20190819084904.30027-1-linus.walleij@linaro.or
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
drivers/pinctrl/qcom/pinctrl-msm.c
include/linux/gpio/driver.h