]> git.baikalelectronics.ru Git - kernel.git/commit
iio: gyro: bmg160: remove redundant field
authorVlad Dogaru <vlad.dogaru@intel.com>
Wed, 13 May 2015 13:30:08 +0000 (16:30 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 17 May 2015 09:24:36 +0000 (10:24 +0100)
commitf6bb4ff6e7643a7ad4f4abbb4184029d1af79a88
tree3da09bb7b6df262fea4d1e1016916692ab5c4c54
parent5424da1bc415df98ee97a360f086ff99fd30dd8c
iio: gyro: bmg160: remove redundant field

Replace the 'timestamp' field in struct bmg160_data with the identically
named field in iio_poll_func and with calls to iio_get_time_ns().

The reported timestamps may be slightly different, but the advantage is
that we no longer assume that the buffer of bmg160 is triggered by its
own trigger.

Signed-off-by: Vlad Dogaru <vlad.dogaru@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/gyro/bmg160.c