diff options
author | Hans de Goede <hdegoede@redhat.com> | 2022-12-21 23:07:24 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-01-12 19:40:19 +0100 |
commit | 6dc485f9940df8105ea729cbeb7a7d18d409dde5 (patch) | |
tree | 989c829c8372fe42ce49b2860b6e719ca614b35e /include/linux/platform_data/hwmon-s3c.h | |
parent | 1af7fef0d9d3fa075bf4e850f705df1fe97d33ce (diff) |
platform/x86: dell-privacy: Only register SW_CAMERA_LENS_COVER if present
Unlike keys where userspace only reacts to keypresses, userspace may act
on switches in both (0 and 1) of their positions.
For example if a SW_TABLET_MODE switch is registered then GNOME will not
automatically show the onscreen keyboard when a text field gets focus on
touchscreen devices when SW_TABLET_MODE reports 0 and when SW_TABLET_MODE
reports 1 libinput will block (filter out) builtin keyboard and touchpad
events.
So to avoid unwanted side-effects EV_SW type inputs should only be
registered if they are actually present, only register SW_CAMERA_LENS_COVER
if it is actually there.
Fixes: 8af9fa37b8a3 ("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-2-hdegoede@redhat.com
Diffstat (limited to 'include/linux/platform_data/hwmon-s3c.h')
0 files changed, 0 insertions, 0 deletions