mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] i2c: gpio: use of_get_named_gpio() instead of of_get_named_gpio_flags()
@ 2019-11-20  5:52 Antony Pavlov
  2019-11-25  7:50 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2019-11-20  5:52 UTC (permalink / raw)
  To: barebox

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 drivers/i2c/busses/i2c-gpio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-gpio.c b/drivers/i2c/busses/i2c-gpio.c
index 5ab43fe935..7ccdb0b222 100644
--- a/drivers/i2c/busses/i2c-gpio.c
+++ b/drivers/i2c/busses/i2c-gpio.c
@@ -94,8 +94,8 @@ static int of_i2c_gpio_probe(struct device_node *np,
 	if (!IS_ENABLED(CONFIG_OFDEVICE))
 		return -ENODEV;
 
-	pdata->sda_pin = of_get_named_gpio_flags(np, "sda-gpios", 0, NULL);
-	pdata->scl_pin = of_get_named_gpio_flags(np, "scl-gpios", 0, NULL);
+	pdata->sda_pin = of_get_named_gpio(np, "sda-gpios", 0);
+	pdata->scl_pin = of_get_named_gpio(np, "scl-gpios", 0);
 
 	if ((!gpio_is_valid(pdata->sda_pin) || !gpio_is_valid(pdata->scl_pin))
 	    && (of_gpio_count(np) >= 2)) {
-- 
2.23.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-25  7:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-20  5:52 [PATCH] i2c: gpio: use of_get_named_gpio() instead of of_get_named_gpio_flags() Antony Pavlov
2019-11-25  7:50 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox