Skip to content

Commit c028e1c

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
gpio: stmpe: Remove unused 'dev' member of struct stmpe_gpio
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> Link: https://lore.kernel.org/r/20240902133148.2569486-3-andriy.shevchenko@linux.intel.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent a794331 commit c028e1c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/gpio/gpio-stmpe.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ enum { LSB, CSB, MSB };
3131
struct stmpe_gpio {
3232
struct gpio_chip chip;
3333
struct stmpe *stmpe;
34-
struct device *dev;
3534
struct mutex irq_lock;
3635
u32 norequest_mask;
3736
/* Caches of interrupt control registers for bus_lock */
@@ -481,7 +480,6 @@ static int stmpe_gpio_probe(struct platform_device *pdev)
481480

482481
mutex_init(&stmpe_gpio->irq_lock);
483482

484-
stmpe_gpio->dev = &pdev->dev;
485483
stmpe_gpio->stmpe = stmpe;
486484
stmpe_gpio->chip = template_chip;
487485
stmpe_gpio->chip.ngpio = stmpe->num_gpios;

0 commit comments

Comments
 (0)