diff options
author | Hans de Goede <hdegoede@redhat.com> | 2020-05-02 20:29:51 +0200 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-05-07 20:19:37 +0300 |
commit | d307f17293226a5bf22cbe67d8b949efe143950e (patch) | |
tree | 1798878216953f9acc85ddbdd63f1698f599b72f /drivers/platform/mips | |
parent | 1fac39fd0316b19c3e57a182524332332d1643ce (diff) | |
download | linux-d307f17293226a5bf22cbe67d8b949efe143950e.tar.bz2 |
platform/x86: intel-vbtn: Fix probe failure on devices with only switches
On some devices the INT33D6 vbtn device is only used to report
tablet-mode / docked status (switches) and there are no vbtn managed
buttons.
On these devices there is no VBDL object.
Move the VBDL check to a intel_vbtn_has_buttons() helper and only exit
from intel_vbtn_probe() with -ENODEV when there are both no buttons and
no switches. Also only report the buttons being present to userspace if
the has_buttons check has succeeded.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform/mips')
0 files changed, 0 insertions, 0 deletions