mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
gpio: mockup: Fix mode of debugfs files
commit0a1bb16e0f
upstream. This driver's debugfs files have had a read operation since commit2a9e27408e
("gpio: mockup: rework debugfs interface"), but were still being created with write-only mode bits. Update them to indicate that the files can also be read. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Fixes:2a9e27408e
("gpio: mockup: rework debugfs interface") Cc: stable@kernel.org # v5.1+ Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c570dbf279
commit
ea50ee0ef9
1 changed files with 1 additions and 1 deletions
|
@ -370,7 +370,7 @@ static void gpio_mockup_debugfs_setup(struct device *dev,
|
|||
priv->offset = i;
|
||||
priv->desc = &gc->gpiodev->descs[i];
|
||||
|
||||
debugfs_create_file(name, 0200, chip->dbg_dir, priv,
|
||||
debugfs_create_file(name, 0600, chip->dbg_dir, priv,
|
||||
&gpio_mockup_debugfs_ops);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue