iio:ak8975: add mounting matrix support
authorGregor Boirie <gregor.boirie@parrot.com>
Wed, 20 Apr 2016 17:23:44 +0000 (19:23 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 23 Apr 2016 21:14:34 +0000 (22:14 +0100)
commit97eacb9166f4810368e180073dcbceeff0de34df
tree6acfa9d79d34ba1d141a9e73b8f94bec42c183b2
parentdfc57732ad38f93ae6232a3b4e64fd077383a0f1
iio:ak8975: add mounting matrix support

Expose a rotation matrix to indicate userspace the chip orientation with
respect to the overall hardware system.
Matrix is retrieved from "in_mount_matrix". It is declared into ak8975 DTS
entry as a "mount-matrix" property.

Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/devicetree/bindings/iio/magnetometer/ak8975.txt
drivers/iio/magnetometer/ak8975.c
include/linux/iio/magnetometer/ak8975.h [new file with mode: 0644]