]> git.baikalelectronics.ru Git - uboot.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)
commit3b12e960796a60d9ccac36d59fec1a01583d17a6
tree0d1967612b18a671bfd039b13924b5fbf3e7c3a3
parent649778ae3ce13f512eff6dc1125db95777dd67b2
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