[PATCH v1 2/5] gpio: stmpe: Remove unused 'dev' member of struct stmpe_gpio

Andy Shevchenko posted 5 patches 1 year, 3 months ago
[PATCH v1 2/5] gpio: stmpe: Remove unused 'dev' member of struct stmpe_gpio
Posted by Andy Shevchenko 1 year, 3 months ago
There is no evidence that the 'dev' member of struct stmpe_gpio
is used, drop it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/gpio/gpio-stmpe.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpio/gpio-stmpe.c b/drivers/gpio/gpio-stmpe.c
index 4e171f9075bf..99f1482b2ab3 100644
--- a/drivers/gpio/gpio-stmpe.c
+++ b/drivers/gpio/gpio-stmpe.c
@@ -31,7 +31,6 @@ enum { LSB, CSB, MSB };
 struct stmpe_gpio {
 	struct gpio_chip chip;
 	struct stmpe *stmpe;
-	struct device *dev;
 	struct mutex irq_lock;
 	u32 norequest_mask;
 	/* Caches of interrupt control registers for bus_lock */
@@ -481,7 +480,6 @@ static int stmpe_gpio_probe(struct platform_device *pdev)
 
 	mutex_init(&stmpe_gpio->irq_lock);
 
-	stmpe_gpio->dev = &pdev->dev;
 	stmpe_gpio->stmpe = stmpe;
 	stmpe_gpio->chip = template_chip;
 	stmpe_gpio->chip.ngpio = stmpe->num_gpios;
-- 
2.43.0.rc1.1336.g36b5255a03ac
Re: [PATCH v1 2/5] gpio: stmpe: Remove unused 'dev' member of struct stmpe_gpio
Posted by Linus Walleij 1 year, 3 months ago
On Mon, Sep 2, 2024 at 3:32 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> There is no evidence that the 'dev' member of struct stmpe_gpio
> is used, drop it.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij