]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mockup: extend the debugfs layout
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 27 Nov 2017 10:48:45 +0000 (11:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 2 Dec 2017 21:42:27 +0000 (22:42 +0100)
commit163b177514bf2dc21d3a60374447bbded3056a49
treea97b42041cacefedfab06628afb94a2f79af3454
parent9a8e99c79954e9c524f13d92586f3956b29c3c88
gpio: mockup: extend the debugfs layout

Currently each chip has a dedicated directory in debugfs for event
triggers. We use the chip's label for the directory name, but the user
can't really associate these directories with chip names without
parsing the relevant sysfs entries.

Use chip names for directory names. For backward compatibility: create
links pointing to the actual directories named using the chip labels.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mockup.c