All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] gpio: moxart: Drop redundant code to set already initialized gpio_chip fields
@ 2016-02-26  7:59 Axel Lin
  2016-02-26  8:00 ` [PATCH 2/2] gpio: moxart: Allow compile test build Axel Lin
  2016-03-07  4:37 ` [PATCH 1/2] gpio: moxart: Drop redundant code to set already initialized gpio_chip fields Linus Walleij
  0 siblings, 2 replies; 4+ messages in thread
From: Axel Lin @ 2016-02-26  7:59 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Jonas Jensen, Alexandre Courbot, linux-gpio

These fields are initialized by bgpio_init() with exactly the same settings
so remove the redundant code.

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

diff --git a/drivers/gpio/gpio-moxart.c b/drivers/gpio/gpio-moxart.c
index ca60453..f7cf593 100644
--- a/drivers/gpio/gpio-moxart.c
+++ b/drivers/gpio/gpio-moxart.c
@@ -57,10 +57,7 @@ static int moxart_gpio_probe(struct platform_device *pdev)
 	gc->label = "moxart-gpio";
 	gc->request = gpiochip_generic_request;
 	gc->free = gpiochip_generic_free;
-	gc->bgpio_data = gc->read_reg(gc->reg_set);
 	gc->base = 0;
-	gc->ngpio = 32;
-	gc->parent = dev;
 	gc->owner = THIS_MODULE;
 
 	ret = gpiochip_add_data(gc, NULL);
-- 
2.1.4




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

end of thread, other threads:[~2016-03-07  4:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-26  7:59 [PATCH 1/2] gpio: moxart: Drop redundant code to set already initialized gpio_chip fields Axel Lin
2016-02-26  8:00 ` [PATCH 2/2] gpio: moxart: Allow compile test build Axel Lin
2016-03-07  4:39   ` Linus Walleij
2016-03-07  4:37 ` [PATCH 1/2] gpio: moxart: Drop redundant code to set already initialized gpio_chip fields 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.