Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging:iio:adc:max1363 actually make timestamp controllable

Previously timestamps were always on in this driver.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Jonathan Cameron and committed by
Greg Kroah-Hartman
29bf6263 117cf8b7

+2 -3
+2 -3
drivers/staging/iio/adc/max1363_ring.c
··· 138 138 goto done; 139 139 140 140 time_ns = iio_get_time_ns(); 141 - 142 - memcpy(rxbuf + d_size - sizeof(s64), &time_ns, sizeof(time_ns)); 143 - 141 + if (indio_dev->buffer->scan_timestamp) 142 + memcpy(rxbuf + d_size - sizeof(s64), &time_ns, sizeof(time_ns)); 144 143 indio_dev->buffer->access->store_to(indio_dev->buffer, rxbuf, time_ns); 145 144 done: 146 145 iio_trigger_notify_done(indio_dev->trig);