iio: adc: ina2xx: Align timestamp with conversion ready flag
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Thu, 21 Dec 2017 18:31:37 +0000 (19:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:03:43 +0000 (16:03 +0100)
commit8c3a7b0a6c3538ab459d89691dbd379235efd170
tree9cffb2192ef8775664b2d3fccddd9d641b895325
parent8ea2a63869517271f7356241015a3edf3efb77a5
iio: adc: ina2xx: Align timestamp with conversion ready flag

As the timestamp is no longer (ab-)used to measure the function run time,
it can be taken at the correct time, i.e. when the conversion has finished.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/ina2xx-adc.c