summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2025-04-28 15:23:04 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-05-21 14:20:29 +0100
commit15c82338b3640daab2b7a2718a9eed93cfd8537a (patch)
tree30902b73560f6e18dcd253a043f5b24aa90bdebd /tools/perf/scripts/python/export-to-postgresql.py
parent93583174a3dffdcf604507106cb1d404bd65669d (diff)
iio: adc: ad4695: use u16 for buffer elements
Change the type of the buffer elements to u16 since we currently only support 16-bit word size. The code was originally written to also allow for 32-bit word size when oversampling is enabled, but so far, oversampling is only implemented when using SPI offload and therefore doesn't use this buffer. AD4695_MAX_CHANNEL_SIZE macro is dropped since it no longer adds any value. AD4695_MAX_CHANNELS + 2 is changed to AD4695_MAX_CHANNELS + 1 because previously we were overallocating. AD4695_MAX_CHANNELS is the number of of voltage channels and + 1 is for the temperature channel. Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Trevor Gamblin <tgamblin@baylibre.com> Link: https://patch.msgid.link/20250428-iio-introduce-iio_declare_buffer_with_ts-v4-2-6f7f6126f1cb@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions