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)
commiteb2191017e3063c7269be81e1543ccd157bb1e8b
tree3da09bb7b6df262fea4d1e1016916692ab5c4c54
parentfcc1b2f57d89142acf6173a8e6ffb19f5f5ec876
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