mirror_ubuntu-kernels/drivers/platform/x86/dell
Hans de Goede 1af7fef0d9 platform/x86: dell-privacy: Fix SW_CAMERA_LENS_COVER reporting
Use KE_VSW instead of KE_SW for the SW_CAMERA_LENS_COVER key_entry
and get the value of the switch from the status field when handling
SW_CAMERA_LENS_COVER events, instead of always reporting 0.

Also correctly set the initial SW_CAMERA_LENS_COVER value.

Fixes: 8af9fa37b8 ("platform/x86: dell-privacy: Add support for Dell hardware privacy")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20221221220724.119594-1-hdegoede@redhat.com
2023-01-12 19:40:19 +01:00
..
dell-wmi-sysman platform/x86: move from strlcpy with unused retval to strscpy 2022-08-26 11:56:56 +02:00
alienware-wmi.c platform/x86/dell: alienware-wmi: Use sysfs_emit() instead of scnprintf() 2022-12-08 17:07:07 +01:00
dcdbas.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
dcdbas.h platform/x86/dell: add buffer allocation/free functions for SMI calls 2022-04-27 21:45:28 +02:00
dell_rbu.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
dell-laptop.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
dell-rbtn.c ACPI: make remove callback of ACPI driver void 2022-11-23 19:11:22 +01:00
dell-rbtn.h
dell-smbios-base.c platform/x86: dell-smbios-base: Use sysfs_emit() 2022-09-27 15:05:32 +02:00
dell-smbios-smm.c platform/x86/dell: add buffer allocation/free functions for SMI calls 2022-04-27 21:45:28 +02:00
dell-smbios-wmi.c platform/x86: dell-smbios-wmi: Add missing kfree in error-exit from run_smbios_call 2021-08-26 16:09:43 +02:00
dell-smbios.h
dell-smo8800.c platform/x86: dell-smo8800: Convert to be a platform driver 2021-08-12 09:26:28 +02:00
dell-wmi-aio.c
dell-wmi-base.c platform/x86: dell-wmi: Add WMI event 0x0012 0x0003 to the list 2022-09-01 16:54:35 +02:00
dell-wmi-ddv.c platform/x86: dell-ddv: Warn if ePPID has a suspicious length 2022-11-16 08:48:19 +01:00
dell-wmi-descriptor.c platform/x86: Adjust Dell drivers to a personal email address 2021-04-07 19:47:23 +02:00
dell-wmi-descriptor.h
dell-wmi-led.c
dell-wmi-privacy.c platform/x86: dell-privacy: Fix SW_CAMERA_LENS_COVER reporting 2023-01-12 19:40:19 +01:00
dell-wmi-privacy.h platform/x86: dell-privacy: Add support for Dell hardware privacy 2021-06-16 17:47:51 +02:00
Kconfig platform/x86: dell: Add new dell-wmi-ddv driver 2022-11-16 08:48:18 +01:00
Makefile platform/x86: dell: Add new dell-wmi-ddv driver 2022-11-16 08:48:18 +01:00