linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gpio: syscon: do not use raw "set" callback in syscon_gpio_dir_out
@ 2017-08-30 14:50 Vladimir Murzin
  2017-09-21 11:23 ` Linus Walleij
  0 siblings, 1 reply; 8+ messages in thread
From: Vladimir Murzin @ 2017-08-30 14:50 UTC (permalink / raw)
  To: linux-gpio; +Cc: linus.walleij, grygorii.strashko

"set" callback is optional and can be NULL, instead use chip->set
which always points at proper callback function.

Fixes 2c341d62eb4b ("gpio: syscon: add soc specific callback to assign output value")

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
---
 drivers/gpio/gpio-syscon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-syscon.c b/drivers/gpio/gpio-syscon.c
index 537cec7..cf88a0b 100644
--- a/drivers/gpio/gpio-syscon.c
+++ b/drivers/gpio/gpio-syscon.c
@@ -122,7 +122,7 @@ static int syscon_gpio_dir_out(struct gpio_chip *chip, unsigned offset, int val)
 				   BIT(offs % SYSCON_REG_BITS));
 	}
 
-	priv->data->set(chip, offset, val);
+	chip->set(chip, offset, val);
 
 	return 0;
 }
-- 
1.9.1


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

end of thread, other threads:[~2017-09-25  5:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-30 14:50 [PATCH] gpio: syscon: do not use raw "set" callback in syscon_gpio_dir_out Vladimir Murzin
2017-09-21 11:23 ` Linus Walleij
2017-09-21 11:56   ` Alexander Shiyan
2017-09-22 10:23     ` Vladimir Murzin
2017-09-22 13:47       ` Linus Walleij
2017-09-22 14:12         ` Vladimir Murzin
2017-09-22 13:42     ` Linus Walleij
2017-09-25  5:21       ` Alexander Shiyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).