]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: lenovo-wmi-camera: Use SW_CAMERA_LENS_COVER instead of KEY_CAMERA_ACESS
authorAi Chao <aichao@kylinos.cn>
Wed, 15 Jan 2025 02:28:24 +0000 (10:28 +0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 15 Jan 2025 14:38:37 +0000 (16:38 +0200)
commitd98bf6a6ed61a8047e199495b0887cce392f8e5b
tree7daa1349a07cc5dc7ee1849c12ba6e47d8104b47
parent549fcf58cf5837d401d0de906093169b05365609
platform/x86: lenovo-wmi-camera: Use SW_CAMERA_LENS_COVER instead of KEY_CAMERA_ACESS

Use SW_CAMERA_LENS_COVER instead of KEY_CAMERA_ACESS_ENABLE and
KEY_CAMERA_ACESS_DISABLE. When the camera toggle switch was hit,
the lenovo-wmi-camera driver would report an event code.

Signed-off-by: Ai Chao <aichao@kylinos.cn>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20250115022825.101986-1-aichao@kylinos.cn
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/lenovo-wmi-camera.c