platform/x86: dell-wmi: Recognise or support new switches
authorTroy Rollo <linux2021@troy.rollo.name>
Sat, 18 Sep 2021 07:31:30 +0000 (17:31 +1000)
committerHans de Goede <hdegoede@redhat.com>
Tue, 21 Sep 2021 13:21:06 +0000 (15:21 +0200)
commit5fbd827eb9c224c33a5f263ee543a75fe957faa3
treebb6ec2593f2486590df35a56a60e3bfd3ff58633
parent6ffd9639382f2acff671c3de2e9cb3875fbf7e5d
platform/x86: dell-wmi: Recognise or support new switches

Adds support for:

- Dell Inspiron 2in1 tablet mode switch notifications. These are
  delivered by a type 0x0011 message with code 0xe070, followed by a
  flag (1 for laptop mode, 0 for tablet mode).

- Recognising (but not otherwise processing) the Dell Ultra Performance
  mode request switch. This is delivered by a type 0x0012 message with
  code 0x000d, followed by a parameter that is either 1 or 2. It is
  not clear what (if anything) should be done with this notification, so
  it is ignored.

Signed-off-by: Troy Rollo <linux2021@troy.rollo.name>
Link: https://lore.kernel.org/r/20210918073131.2966942-1-linux2021@troy.rollo.name
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/dell/dell-wmi-base.c