]> git.itanic.dy.fi Git - linux-stable/commit
gpio: mockup: rework debugfs interface
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 17 Jan 2019 15:30:27 +0000 (16:30 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 19 Feb 2019 16:42:29 +0000 (17:42 +0100)
commit2a9e27408e12de455b9fcf66b5d0166f2129579e
treed95436b7b341065e2e28029ff654fe5b5d951eb7
parente09313ce7ea1706d1642c7d5af103915e69fc6d0
gpio: mockup: rework debugfs interface

Modify the way the debugfs interface works in gpio-mockup. Introduce
the concept of dummy pull config which will keep the mockup lines in
known state. The pull values can be modified by writing to the debugfs
files corresponding to lines. Lines in input mode always report the
current pull value, lines in output mode change the line value but
it will revert back to the one specified by current pull when released.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-mockup.c