Skip to content

Commit 5054740

Browse files
xhackerustcbroonie
authored andcommitted
regulator: sy8827n: make enable gpio NONEXCLUSIVE
On some platforms, the sy8827n enable gpio may also be used for other purpose, so make it NONEXCLUSIVE to support this case. Signed-off-by: Jisheng Zhang <[email protected]> Acked-by: Bartosz Golaszewski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 769fced commit 5054740

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/regulator/sy8827n.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ static int sy8827n_i2c_probe(struct i2c_client *client)
140140
return -EINVAL;
141141
}
142142

143-
di->en_gpio = devm_gpiod_get_optional(dev, "enable", GPIOD_OUT_HIGH);
143+
di->en_gpio = devm_gpiod_get_optional(dev, "enable",
144+
GPIOD_OUT_HIGH | GPIOD_FLAGS_BIT_NONEXCLUSIVE);
144145
if (IS_ERR(di->en_gpio))
145146
return PTR_ERR(di->en_gpio);
146147

0 commit comments

Comments
 (0)