aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/iio/magnetometer/ak8975.c
diff options
context:
space:
mode:
authorGregor Boirie <gregor.boirie@parrot.com>2016-04-20 19:23:43 +0200
committerJonathan Cameron <jic23@kernel.org>2016-04-23 22:13:05 +0100
commitdfc57732ad38f93ae6232a3b4e64fd077383a0f1 (patch)
tree180c004346687cc3d6204239a25bc630c30ea569 /drivers/iio/magnetometer/ak8975.c
parentiio: gyro: bmg160: use regmap to retrieve struct device (diff)
downloadwireguard-linux-dfc57732ad38f93ae6232a3b4e64fd077383a0f1.tar.xz
wireguard-linux-dfc57732ad38f93ae6232a3b4e64fd077383a0f1.zip
iio:core: mounting matrix support
Expose a rotation matrix to indicate userspace the chip placement with respect to the overall hardware system. This is needed to adjust coordinates sampled from a sensor chip when its position deviates from the main hardware system. Final coordinates computation is delegated to userspace since: * computation may involve floating point arithmetics ; * it allows an application to combine adjustments with arbitrary transformations. This 3 dimentional space rotation matrix is expressed as 3x3 array of strings to support floating point numbers. It may be retrieved from a "[<dir>_][<type>_]mount_matrix" sysfs attribute file. It is declared into a device / driver specific DTS property or platform data. Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/magnetometer/ak8975.c')
0 files changed, 0 insertions, 0 deletions