platform/x86: acer-wmi: Add new force_caps module parameter
authorHans de Goede <hdegoede@redhat.com>
Mon, 19 Oct 2020 18:56:26 +0000 (20:56 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 28 Oct 2020 11:57:31 +0000 (12:57 +0100)
commit39aa009bb66f9d5fbd1e58ca4aa03d6e6f2c9915
tree07df3ea2dc905c44c57039db81963e686734445d
parent9feb0763e4985ccfae632de3bb2f029cc8389842
platform/x86: acer-wmi: Add new force_caps module parameter

Add a new force_caps module parameter to allow overriding the drivers
builtin capability detection mechanism.

This can be used to for example:
-Disable rfkill functionality on devices where there is an AA OEM DMI
 record advertising non functional rfkill switches
-Force loading of the driver on devices with a missing AA OEM DMI record

Note that force_caps is -1 when unset, this allows forcing the
capability field to 0, which results in acer-wmi only providing WMI
hotkey handling while disabling all other (led, rfkill, backlight)
functionality.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20201019185628.264473-4-hdegoede@redhat.com
drivers/platform/x86/acer-wmi.c