[go: nahoru, domu]

History log of /drivers/iio/imu/adis16400_core.c
Revision Date Author Comments
a07a97d0493446566b25d4a966b5e4792c1ba8a3 22-Jun-2014 Jonathan Cameron <jic23@kernel.org> iio: imu: adis16400 switch sampling frequency attr to core support.

By using the info_mask_shared_by_all element of the channel spec, access
to the sampling frequency becomes available to in kernel users of the
driver. It also shortens and simplifies the code.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reviewed-by: Hartmut Knaack <knaack.h@gmx.de>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
c76782d151dab7ecfdcdf9a01561c2d61d9b490f 24-Jan-2014 Marcus Folkesson <marcus.folkesson@gmail.com> iio: adis16400: Set timestamp as the last element in chan_spec

This is necessary since timestamp is calculated as the last element
in iio_compute_scan_bytes().

Without this fix any userspace code reading the layout of the buffer via
sysfs will incorrectly interpret the data leading some nasty corruption.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
7638c2ed9c1df35ea74ea992df6ea380c9f842e3 30-Jan-2014 Dan Carpenter <dan.carpenter@oracle.com> iio:imu:adis16400 remove an unneeded check

We know "ret" is zero here so there is no need to check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
3425c0f7ac61f2fcfb7f2728e9b7ba7e27aec429 11-Dec-2013 Jonathan Cameron <jic23@kernel.org> iio:imu:adis16400 fix pressure channel scan type

A single channel in this driver was using the IIO_ST macro.
This does not provide a parameter for setting the endianness of
the channel. Thus this channel will have been reported as whatever
is the native endianness of the cpu rather than big endian. This
means it would be incorrect on little endian platforms.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: stable@vger.kernel.org
5b778b97d494653deb2f2320393900ee51c80894 30-Jul-2013 Sachin Kamat <sachin.kamat@linaro.org> iio: imu: adis16400: Use devm_iio_device_alloc

Using devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Manuel Stahl <manuel.stahl@iis.fraunhofer.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
19a7c88d99c94e232e8dacb585ca359f0f0d94b6 27-Feb-2013 Jonathan Cameron <jic23@kernel.org> iio:imu:adis16400 move to info_mask_(shared_by_type/separate)

The original info_mask is going away in favour of the broken out versions.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
76ada52f7f5d4c83cbb6d61e556e3fbd0ac6d34f 16-Jan-2013 Lars-Peter Clausen <lars@metafoo.de> iio:adis16400: Add support for the adis16448

The adis16448 is more or less from the same family of devices as supported by
this driver. It features three acceleration channels, three angular velocity
channels, three magnetometer channels, one temperature channels and one
barometric pressure channel.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1db18bb4c25823bfc11f370157f9d23a4d99ea1d 16-Jan-2013 Lars-Peter Clausen <lars@metafoo.de> iio:adis16400: Expose some debug information in debugfs

Expose some information useful for debugging a device in debugfs. This includes
for now the flash count, the product id and the serial number and raw register
access.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
7ba8a04dcdfb5ebcb4985a92dfc4dc4f59510464 16-Jan-2013 Lars-Peter Clausen <lars@metafoo.de> iio:adis16400: Add support for the 52.85 Hz base sampling rate

The adis16400 and similar have two different base sampling rate available, from
which the actual sampling rate is derived. 1638 Hz and 52.85 Hz, switching to
the lower base sampling rate allows to support lower sampling rates.

This patch adds support for switching to the lower base sampling rate if the
requested sampling frequency is outside of the range which can be supported by
the higher base sampling rate.

The function which is used to read the current sampling rate already has support
for the lower sampling rate, so no changes are required there.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
b24150e31ab27ffcd2aa9b33dca42c2070526054 16-Jan-2013 Lars-Peter Clausen <lars@metafoo.de> iio:adis16400: Increase samplerate precession

The devices supported by this drivers support sample rates with less than one
sample per second. To support this increase the samplerate precession to allow
setting (and reading) the samplerate with a milli-HZ precession.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
d6b09bd85d57752395c6407bd8a9b32eb7b279ff 16-Jan-2013 Lars-Peter Clausen <lars@metafoo.de> staging:iio: Move adis16400 out of staging

This adis16400 driver is in pretty good shape now, so move it out of staging.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>