gpio: stm32: correct the bias management
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 28 Oct 2020 09:49:08 +0000 (10:49 +0100)
committerPatrick Delaunay <patrick.delaunay@st.com>
Wed, 25 Nov 2020 11:01:46 +0000 (12:01 +0100)
commit2c6df94c83425a2230b4bf676ba515525a13b3c8
tree8601a8bacfbd530afe0e58b8e771bde9fba1409c
parentb305dbc08b08ab6681bfae8d33adc4f90fd3b9ad
gpio: stm32: correct the bias management

Use the bias configuration for all the GPIO configurations and not
only for input GPIO, as indicated in Reference manual
(Table 81. Port bit configuration table).

Fixes: 43efbb6a3ebf0223f9eab8d45916f602d876319f ("gpio: stm32: add ops get_dir_flags")
Fixes: f13ff88b61c32ac8f0e9068c41328b265ef619eb ("gpio: stm32: add ops set_dir_flags")
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
drivers/gpio/stm32_gpio.c