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

Configure Feed

Select the types of activity you want to include in your feed.

iio: chemical: scd4x: expose timestamp channel

Timestamps were already written to the buffer in
scd4x_trigger_handler(), this patch makes them available as a channel.

Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Fiona Klute and committed by
Jonathan Cameron
e7324980 4ea6e9b5

+3
+3
drivers/iio/chemical/scd4x.c
··· 59 59 SCD4X_CO2, 60 60 SCD4X_TEMP, 61 61 SCD4X_HR, 62 + /* kernel timestamp, at the end of buffer */ 63 + SCD4X_TS, 62 64 }; 63 65 64 66 struct scd4x_state { ··· 617 615 .endianness = IIO_BE, 618 616 }, 619 617 }, 618 + IIO_CHAN_SOFT_TIMESTAMP(SCD4X_TS), 620 619 }; 621 620 622 621 static int scd4x_suspend(struct device *dev)