summaryrefslogtreecommitdiffstats
path: root/mm/mmu_gather.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-08-24 17:11:45 +0200
committerHans de Goede <hdegoede@redhat.com>2022-08-25 16:23:53 +0200
commit1ea0d3b46798afc35c3185f6058b8bc08525d56c (patch)
tree2a1588ecacef5fcf8ff912901d35440bc0323c69 /mm/mmu_gather.c
parentplatform/x86: asus-wmi: Simplify tablet-mode-switch probing (diff)
downloadlinux-1ea0d3b46798afc35c3185f6058b8bc08525d56c.tar.xz
linux-1ea0d3b46798afc35c3185f6058b8bc08525d56c.zip
platform/x86: asus-wmi: Simplify tablet-mode-switch handling
Simplify tablet-mode-switch handling: 1. The code is the same for all variants, the only difference is the dev_id and notify event code. Store the dev_id + code in struct asus_wmi and unify the handling 2. Make the new unified asus_wmi_tablet_mode_get_state() check dev_id has been set and make it a no-op when not set. This allows calling it unconditionally at resume/restore time 3. Simplify the tablet_mode_sw module-param handling, this also allows selecting the new lid-flip-rog type through the module-param. Cc: Luke D. Jones <luke@ljones.dev> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20220824151145.1448010-2-hdegoede@redhat.com
Diffstat (limited to 'mm/mmu_gather.c')
0 files changed, 0 insertions, 0 deletions