rules: Allow quirks for platform IIO accelerometers

Chromebooks have IIO accelerometers with modalias as platform:cros-ec-accel.
This commit allows these devices to use systemd orientation quirk.
This commit is contained in:
Daniel Stuart 2019-09-24 18:31:04 -03:00
parent a007d6fc2a
commit 9832839c47
1 changed files with 1 additions and 1 deletions

View 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"