]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: surface3_button: Propagate error from gpiod_count()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 20 Feb 2017 16:15:48 +0000 (18:15 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Mar 2017 20:52:12 +0000 (21:52 +0100)
commit8b32c249f9038f83ea32304e8a7f76101504c3ed
treec501dfe72d90e884c9d6eb5128c5d4f3e6113c6c
parentccbb92d991d3bc07139b1f3add6b555bd7365ac9
platform/x86: surface3_button: Propagate error from gpiod_count()

Since gpiod_count() does not return 0 anymore, we don't need to shadow
its error code and would safely propagate to the user.

While here, replace second parameter by NULL in order to prevent side
effects on _DSD enabled firmware.

Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/platform/x86/surface3_button.c