]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: stmfx: add function stmfx_read_reg and stmfx_write_reg
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 4 Jun 2020 12:30:29 +0000 (14:30 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Tue, 7 Jul 2020 14:01:23 +0000 (16:01 +0200)
commitfabb6e14c86d8d38beaaade8bc18a678cdc06c0a
tree0d1967612b18a671bfd039b13924b5fbf3e7c3a3
parent067c7398d5748d1b29df6aa1d5059a528310e4f7
gpio: stmfx: add function stmfx_read_reg and stmfx_write_reg

Add the helper functions stmfx_read_reg() and stmfx_write_reg() to avoid
duplicated code for access to stmfx's register with mask.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
drivers/pinctrl/pinctrl-stmfx.c