summaryrefslogtreecommitdiff
path: root/tools/power/x86
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2020-05-02 20:29:51 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-05-07 20:19:37 +0300
commitd307f17293226a5bf22cbe67d8b949efe143950e (patch)
tree1798878216953f9acc85ddbdd63f1698f599b72f /tools/power/x86
parent1fac39fd0316b19c3e57a182524332332d1643ce (diff)
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 'tools/power/x86')
0 files changed, 0 insertions, 0 deletions