Merge pull request #25206 from p-fpv/main

hwdb: Add Lenovo G580
This commit is contained in:
Yu Watanabe
2022-11-01 16:23:09 +09:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -622,6 +622,13 @@ evdev:name:MSFT0001:02 04F3:304B Touchpad:dmi:*svnLENOVO:*pvrLenovoLegionY9000X2
EVDEV_ABS_35=::31
EVDEV_ABS_36=::30
# Lenovo g580
evdev:name:ETPS/2 Elantech Touchpad:dmi:*svnLENOVO:*pvrLenovoG580**
EVDEV_ABS_00=-170:2950:24
EVDEV_ABS_01=-591:700:25
EVDEV_ABS_35=-170:2950:24
EVDEV_ABS_36=-591:700:25
#########################################
# Microsoft
#########################################
+1 -1
View File
@@ -202,7 +202,7 @@ def property_grammar():
]
abs_props = [Regex(r'EVDEV_ABS_[0-9a-f]{2}')('NAME')
- Suppress('=') -
Word(nums + ':')('VALUE')
Word('-' + nums + ':')('VALUE')
]
grammar = Or(fixed_props + kbd_props + abs_props) + EOL