]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging:iio: Add common ADIS library
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 13 Nov 2012 13:28:00 +0000 (13:28 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 19 Nov 2012 22:22:04 +0000 (22:22 +0000)
commitccd2b52f4ac69c34564434fb9e5153abcbc97109
tree56818388650927c766053e1a3708ad0461bf98dc
parent6dc973d4fd29860cf648a56510b8a14410d0451f
staging:iio: Add common ADIS library

A lot of the devices from the ADIS family use the same methods for accessing
registers, sampling data and trigger handling. They also have similar register
layout for the control registers.

This patch adds a common library for these devices. The library implements
functions for reading and writing registers as buffer and trigger management. It
also provides a set functions for accessing the control registers and for
running the devices internal self-test. Having this common library code will
allow us to remove a lot of duplicated code.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/imu/Kconfig
drivers/staging/iio/imu/Makefile
drivers/staging/iio/imu/adis.c [new file with mode: 0644]
drivers/staging/iio/imu/adis.h [new file with mode: 0644]
drivers/staging/iio/imu/adis_buffer.c [new file with mode: 0644]
drivers/staging/iio/imu/adis_trigger.c [new file with mode: 0644]