diff options
| author | 2017-02-20 18:15:48 +0200 | |
|---|---|---|
| committer | 2017-03-16 21:52:12 +0100 | |
| commit | 562e7a4032d1ff33e283d7ba1d5f10fe7ea96669 (patch) | |
| tree | c501dfe72d90e884c9d6eb5128c5d4f3e6113c6c /drivers/input/misc | |
| parent | gpio: of: Don't return 0 on dt_gpio_count() (diff) | |
| download | linux-dev-562e7a4032d1ff33e283d7ba1d5f10fe7ea96669.tar.xz linux-dev-562e7a4032d1ff33e283d7ba1d5f10fe7ea96669.zip | |
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>
Diffstat (limited to 'drivers/input/misc')
0 files changed, 0 insertions, 0 deletions
