OSDN Git Service

pinctrl: stmfx: Use the callback to populate valid_mask
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 19 Aug 2019 09:11:40 +0000 (11:11 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Aug 2019 08:42:07 +0000 (10:42 +0200)
commitda9b142ab2c55ae8c46242a7624fdf62c4089e7f
treecc5cfd9eed398f4673bf55970c5d196b2284d43f
parentc9fc5aff217267a9ef3a76450760534488870c69
pinctrl: stmfx: Use the callback to populate valid_mask

This makes use of the existing callback to populate the
valid mask instead of iteratively setting it up during
probe.

Cc: Benjamin Gaignard <benjamin.gaignard@st.com>
Cc: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20190819091140.622-1-linus.walleij@linaro.org
drivers/pinctrl/pinctrl-stmfx.c