summaryrefslogtreecommitdiffstats
path: root/drivers/iio/pressure/hsc030pa.h
diff options
context:
space:
mode:
authorPetre Rodan <petre.rodan@subdimension.ro>2024-02-11 09:56:37 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-02-19 19:32:22 +0000
commit05f5d78834a118b06b0292beb20891f45415d07b (patch)
treee8e349308e93334fbd48ab09c0bca764609733c4 /drivers/iio/pressure/hsc030pa.h
parentdf3186e829c33e3c577e00e8b3faa25763a44bb0 (diff)
downloadlinux-stable-05f5d78834a118b06b0292beb20891f45415d07b.tar.gz
linux-stable-05f5d78834a118b06b0292beb20891f45415d07b.tar.bz2
linux-stable-05f5d78834a118b06b0292beb20891f45415d07b.zip
iio: pressure: hsc030pa add triggered buffer
Add triggered buffer feature. Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro> Link: https://lore.kernel.org/r/20240211075645.28777-7-petre.rodan@subdimension.ro Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/pressure/hsc030pa.h')
-rw-r--r--drivers/iio/pressure/hsc030pa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iio/pressure/hsc030pa.h b/drivers/iio/pressure/hsc030pa.h
index 56dc8e88194b..9b40f46f575f 100644
--- a/drivers/iio/pressure/hsc030pa.h
+++ b/drivers/iio/pressure/hsc030pa.h
@@ -56,6 +56,10 @@ struct hsc_data {
s32 p_scale_dec;
s64 p_offset;
s32 p_offset_dec;
+ struct {
+ __be16 chan[2];
+ s64 timestamp __aligned(8);
+ } scan;
u8 buffer[HSC_REG_MEASUREMENT_RD_SIZE] __aligned(IIO_DMA_MINALIGN);
};