aboutsummaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2017-03-03 21:23:39 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2017-03-03 21:23:39 +0100
commit3e021232da9d93b582354364a1c8b19d67875302 (patch)
treee1890dc121bc461380f7ed4425921fb2e3626594 /rules
parentAvoid strict DM interface version dependencies (#5519) (diff)
downloadsystemd-3e021232da9d93b582354364a1c8b19d67875302.tar.gz
systemd-3e021232da9d93b582354364a1c8b19d67875302.tar.bz2
systemd-3e021232da9d93b582354364a1c8b19d67875302.zip
rules: allow quirks for platform input accelerometers
Diffstat (limited to 'rules')
-rw-r--r--rules/60-sensor.rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules/60-sensor.rules b/rules/60-sensor.rules
index d2f0d90ce..7ad2c36be 100644
--- a/rules/60-sensor.rules
+++ b/rules/60-sensor.rules
@@ -11,4 +11,8 @@ SUBSYSTEM=="input", ENV{ID_INPUT_ACCELEROMETER}=="1", SUBSYSTEMS=="acpi", \
IMPORT{builtin}="hwdb 'sensor:modalias:acpi:$attr{hid}:$attr{[dmi/id]modalias}'", \
GOTO="sensor_end"
+SUBSYSTEM=="input", ENV{ID_INPUT_ACCELEROMETER}=="1", SUBSYSTEMS=="platform", \
+ IMPORT{builtin}="hwdb 'sensor:modalias:platform:$id:$attr{[dmi/id]modalias}'", \
+ GOTO="sensor_end"
+
LABEL="sensor_end"