[systemd-devel] accelerometer mount-matrix quirks
Bastien Nocera
hadess at hadess.net
Thu Nov 24 02:11:46 UTC 2016
On Thu, 2016-11-24 at 00:26 +0100, Lennart Poettering wrote:
> On Wed, 23.11.16 12:59, Bastien Nocera (hadess at hadess.net) wrote:
>
> > The latter is currently [not parsed](http://marc.info/?l=linux-iio&
> > m=147981183211362&w=2) as of kernel 4.9-rc5.
> > If there is no mount-matrix defined in the device-tree or ACPI
> > DSDT, or
> > the data is incorrect, it can be overridden with a udev property,
> > in the
> > `70-accelerometer.hwdb` file, for example:
> > ```
> > iio:FIXME
> > ACCEL_MOUNT_MATRIX="1, 0, 0; 0, 1, 0; 0, 0, 1"
>
> Not that it matters at all, but so far files such as 70-mouse.hwdb
> mostly used spaces separators for multiple fields, and I'd suggest
> that here too, just to keep this similar in style...
The reason why we use this format was explained in the draft
documentation at the bottom. It's the format already used by the
matrix-mount device-tree property. So I'd rather have a single format
to parse for device-tree metadata and the udev quirks.
> But then again, this doesn't matter at all, it's entirely up to you,
> I'll merge it either way...
>
> Lennart
>
More information about the systemd-devel
mailing list