]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpio: stmpe: Remove unused 'dev' member of struct stmpe_gpio
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Sep 2024 13:30:41 +0000 (16:30 +0300)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 4 Sep 2024 07:02:43 +0000 (09:02 +0200)
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>
drivers/gpio/gpio-stmpe.c

index 4e171f9075bf4c875781092a645603d0bcdeaf02..99f1482b2ab332b7c76a3ae3b7c17f6c4b56315c 100644 (file)
@@ -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;