]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: samsung-galaxybook: Refactor camera lens cover input device
authorAyaan Mirza Baig <ayaanmirzabaig85@gmail.com>
Sat, 18 Apr 2026 00:46:13 +0000 (00:46 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 7 May 2026 11:36:18 +0000 (14:36 +0300)
commit72d52bac023b376b73277804b24315ea2a49ad1e
treec87da788f42933ecfcfa8b95cfbfe7fa0b572824
parent863810d4985ad214f70c1623f24384ccc850f2a2
platform/x86: samsung-galaxybook: Refactor camera lens cover input device

Rename the camera_lens_cover_switch input device to a generic input
device which can be used for multiple input events. Move input device
allocation and registration into a dedicated galaxybook_input_init()
helper which is called early in probe so that the device is available
to all features.

No functional change.

Signed-off-by: Ayaan Mirza Baig <ayaanmirzabaig85@gmail.com>
Link: https://patch.msgid.link/20260418004613.93981-2-ayaanmirzabaig85@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/samsung-galaxybook.c