All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpio: ts4800: Drop redundant code to set already initialized gpio_chip fields
@ 2016-02-20  6:22 Axel Lin
  2016-02-22 16:13 ` Julien Grossholtz
  2016-02-25  9:52 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2016-02-20  6:22 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Julien Grossholtz, Alexandre Courbot, linux-gpio

Both chip->base and chip->label are correctly set by bgpio_init().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/gpio/gpio-ts4800.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpio/gpio-ts4800.c b/drivers/gpio/gpio-ts4800.c
index 9da79e4..1478245 100644
--- a/drivers/gpio/gpio-ts4800.c
+++ b/drivers/gpio/gpio-ts4800.c
@@ -54,8 +54,6 @@ static int ts4800_gpio_probe(struct platform_device *pdev)
 		return retval;
 	}
 
-	chip->base = -1;
-	chip->label = dev_name(&pdev->dev);
 	chip->ngpio = ngpios;
 
 	platform_set_drvdata(pdev, chip);
-- 
2.1.4




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

end of thread, other threads:[~2016-02-25  9:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-20  6:22 [PATCH] gpio: ts4800: Drop redundant code to set already initialized gpio_chip fields Axel Lin
2016-02-22 16:13 ` Julien Grossholtz
2016-02-25  9:52 ` Linus Walleij

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.