gpio: ts4800: Drop redundant code to set already initialized gpio_chip fields
PATCH 1/1 gpio: ts4800: Drop redundant code to set already initialized gpio_chip fields
Both chip->base and chip->label are correctly set by bgpio_init().
--- drivers/gpio/gpio-ts4800.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpio/gpio-ts4800.c +0 -2
@@ -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);
Signature · 1 line
2.1.4
Hello,
Thank you for this patch. I checked and it still works as expected.
----- Original Message -----
Quoted 10 lines
From: "Axel Lin" <[email protected]>
To: "Linus Walleij" <[email protected]>
Cc: "Julien Grossholtz" <[email protected]>, "Alexandre Courbot" <[email protected]>, [email protected]
Sent: Saturday, February 20, 2016 1:22:46 AM
Subject: [PATCH] gpio: ts4800: Drop redundant code to set already initializedgpio_chipfieldsBoth
chip->baseandchip->labelare correctly set bybgpio_init().Signed-off-by Axel Lin <[email protected]>
Quoted 19 lines
---
drivers/gpio/gpio-ts4800.c| 2 --1 file changed, 2 deletions(-)drivers/gpio/gpio-ts4800.c +0
-3@@ -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
Quoted 3 lines · Axel Lin
Both
chip->baseandchip->labelare correctly set bybgpio_init().Signed-off-by Axel Lin <[email protected]>
Patch applied with Julien's Test tag.
Yours,
Linus Walleij