Skip to content

Commit 88e17b3

Browse files
chotr4821Patrice Chotard
authored andcommitted
gpio: stmfx: Use correct flag values
Set the correct value for open_drain and push_pull modes. Change-Id: I98873851283d87f75535122543bb731dcfc3471a Signed-off-by: Cheick TRAORE <cheick.traore-ext@st.com> Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/379168 Domain-Review: Amelie DELAUNAY <amelie.delaunay@foss.st.com> ACI: CIBUILD <MDG-smet-aci-builds@list.st.com> Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com> ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
1 parent 411c9ae commit 88e17b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pinctrl/pinctrl-stmfx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ static int stmfx_gpio_set_flags(struct udevice *dev, unsigned int offset,
178178
if (flags & GPIOD_OPEN_SOURCE)
179179
return -ENOTSUPP;
180180
if (flags & GPIOD_OPEN_DRAIN)
181-
ret = stmfx_conf_set_type(dev, offset, 0);
182-
else /* PUSH-PULL */
183181
ret = stmfx_conf_set_type(dev, offset, 1);
182+
else /* PUSH-PULL */
183+
ret = stmfx_conf_set_type(dev, offset, 0);
184184
if (ret)
185185
return ret;
186186
ret = stmfx_gpio_direction_output(dev, offset, value);

0 commit comments

Comments
 (0)