]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab2167fcd9999509a4fb55f3d7d215592bc263b9
tree6acfa9d79d34ba1d141a9e73b8f94bec42c183b2
parent41a6f216a91dd4364c5bdba739e2a075e3b0a66d
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]