diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-09-07 16:52:27 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-09-11 11:16:53 +0200 |
commit | ce9bcbc23ba6c30d783f3d22a0503c0b880406cf (patch) | |
tree | 61645ccaac9b0209a4a615c4b7ce489054f67f3d /drivers/gpio/gpio-mockup.c | |
parent | gpio: mockup: fix kerneldoc (diff) | |
download | linux-ce9bcbc23ba6c30d783f3d22a0503c0b880406cf.tar.xz linux-ce9bcbc23ba6c30d783f3d22a0503c0b880406cf.zip |
gpio: mockup: remove unused field
The desc assigned to debugfs private structure is unused so remove it.
Fixes: 9202ba2397d1 ("gpio: mockup: implement event injecting over debugfs")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-mockup.c')
-rw-r--r-- | drivers/gpio/gpio-mockup.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index 17d4d48524b7..ff1a263f1b05 100644 --- a/drivers/gpio/gpio-mockup.c +++ b/drivers/gpio/gpio-mockup.c @@ -58,7 +58,6 @@ struct gpio_mockup_chip { struct gpio_mockup_dbgfs_private { struct gpio_mockup_chip *chip; - struct gpio_desc *desc; unsigned int offset; }; @@ -369,7 +368,6 @@ static void gpio_mockup_debugfs_setup(struct device *dev, priv->chip = chip; priv->offset = i; - priv->desc = gpiochip_get_desc(gc, i); debugfs_create_file(name, 0600, chip->dbg_dir, priv, &gpio_mockup_debugfs_ops); |