All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name
@ 2018-07-12 14:04 Michal Simek
  2018-07-16  5:19 ` Simon Glass
  2018-07-20 19:31 ` Stefan Herbrechtsmeier
  0 siblings, 2 replies; 19+ messages in thread
From: Michal Simek @ 2018-07-12 14:04 UTC (permalink / raw)
  To: u-boot

There should be proper bank name setup to distiguish between different
gpio drivers. Use dev->name for it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 drivers/gpio/zynq_gpio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c
index 26f69b1a713f..f793ee5754a8 100644
--- a/drivers/gpio/zynq_gpio.c
+++ b/drivers/gpio/zynq_gpio.c
@@ -337,6 +337,8 @@ static int zynq_gpio_probe(struct udevice *dev)
 	struct zynq_gpio_privdata *priv = dev_get_priv(dev);
 	struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
 
+	uc_priv->bank_name = dev->name;
+
 	if (priv->p_data)
 		uc_priv->gpio_count = priv->p_data->ngpio;
 
-- 
1.9.1

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

end of thread, other threads:[~2018-08-02 11:33 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-12 14:04 [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name Michal Simek
2018-07-16  5:19 ` Simon Glass
2018-07-16  5:26   ` Michal Simek
2018-07-20 19:31 ` Stefan Herbrechtsmeier
2018-07-23  9:08   ` Michal Simek
2018-07-23 18:29     ` Stefan Herbrechtsmeier
2018-07-24  8:37       ` Michal Simek
2018-07-24 19:39         ` Stefan Herbrechtsmeier
2018-07-25  6:07           ` Michal Simek
2018-07-25 19:17             ` Stefan Herbrechtsmeier
2018-07-26  8:22               ` Michal Simek
2018-07-26 20:04                 ` Stefan Herbrechtsmeier
2018-07-27  6:42                   ` Michal Simek
2018-07-27  9:14                     ` Stefan Herbrechtsmeier
2018-07-30  8:00                       ` Michal Simek
2018-08-01 18:23                         ` Stefan Herbrechtsmeier
2018-08-02 11:33                           ` Michal Simek
2018-07-23 18:41     ` Simon Glass
2018-07-24  6:30       ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.