diff options
author | Michael Brunner <[email protected]> | 2015-05-11 12:46:49 +0200 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2015-05-12 13:49:13 +0200 |
commit | f230e8ffc03f17bd9d6b90ea890b8252a8cc1821 (patch) | |
tree | 0ed91fda8c78725fa92634a3128f3cf8ba159fd8 /include/linux/fpga/fpga-mgr.h | |
parent | 6d86750ce62391f5a0a7985d5c050c2e3c823ab9 (diff) |
gpio: gpio-kempld: Fix get_direction return value
This patch fixes an inverted return value of the gpio get_direction
function.
The wrong value causes the direction sysfs entry and GPIO debugfs file
to indicate incorrect GPIO direction settings. In some cases it also
prevents setting GPIO output values.
The problem is also present in all other stable kernel versions since
linux-3.12.
Cc: Stable <[email protected]> # v3.12+
Reported-by: Jochen Henneberg <[email protected]>
Signed-off-by: Michael Brunner <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions