diff options
| author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-04-13 11:34:39 +0100 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-05-21 14:20:26 +0100 |
| commit | 175c3f72154e4ef64ba56b0ee35110082ea475b4 (patch) | |
| tree | e241b73c7a6150470c20cb1926a2c11a5607c20f /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 85eb82b3c2a4af98fce7f9a578d5970425ca36a8 (diff) | |
iio: proximity: irsd200: Use a struct for scan and iio_push_to_buffers_with_ts()
The driver previously used an array of two s64, then type cast the
pointer to write an s16 to the start. The code is made more readable
using a structure. At the same time switch to the new
iio_push_to_buffers_with_ts() helper to enable runtime checking of the
size of the source buffer.
Note that this approach uses a structure with holes, so use memset()
to ensure those do not contain old kernel data as this data is passed
to userspace.
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250413103443.2420727-17-jic23@kernel.org
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
