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 <jszhang@kernel.org> Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Link: https://patch.msgid.link/20250629095716.841-1-jszhang@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 769fced commit 5054740

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)