]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
rules: Allow quirks for platform IIO accelerometers
authorDaniel Stuart <daniel.stuart@pucpr.edu.br>
Tue, 24 Sep 2019 21:31:04 +0000 (18:31 -0300)
committerDaniel Stuart <daniel.stuart@pucpr.edu.br>
Tue, 24 Sep 2019 21:31:04 +0000 (18:31 -0300)
Chromebooks have IIO accelerometers with modalias as platform:cros-ec-accel.
This commit allows these devices to use systemd orientation quirk.

rules/60-sensor.rules

index 7ad2c36be3d405b3725bf8990daded4ce65645b6..7b9b7d2887bb6673f873c89c1f4d47245a9d6f11 100644 (file)
@@ -3,7 +3,7 @@
 ACTION=="remove", GOTO="sensor_end"
 
 # device matching the sensor's name and the machine's DMI data for IIO devices
-SUBSYSTEM=="iio", KERNEL=="iio*", SUBSYSTEMS=="usb|i2c", \
+SUBSYSTEM=="iio", KERNEL=="iio*", SUBSYSTEMS=="usb|i2c|platform", \
   IMPORT{builtin}="hwdb 'sensor:modalias:$attr{modalias}:$attr{[dmi/id]modalias}'", \
   GOTO="sensor_end"