mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 13:34:10 +08:00
gpio: mockup: remove unused field
The desc assigned to debugfs private structure is unused so remove it.
Fixes: 9202ba2397
("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>
This commit is contained in:
parent
8d5e2db297
commit
ce9bcbc23b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user