diff options
author | Hans de Goede <hdegoede@redhat.com> | 2022-12-22 01:07:23 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-18 13:58:16 +0300 |
commit | dfa4ff480fe6d7b401a8d2f707b0228c4664de13 (patch) | |
tree | f3ecded347a6c175e05e10e0cf2faf980af76426 /Documentation | |
parent | 0e082105895c448ea8b20daf881c3e2759ed7e15 (diff) | |
download | linux-dfa4ff480fe6d7b401a8d2f707b0228c4664de13.tar.xz |
platform/x86: dell-privacy: Fix SW_CAMERA_LENS_COVER reporting
commit 1af7fef0d9d3fa075bf4e850f705df1fe97d33ce upstream.
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: 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-1-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions