]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iio: sx9310: Fixes various memory handling
authorDaniel Campello <campello@chromium.org>
Mon, 3 Aug 2020 23:58:06 +0000 (17:58 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Sep 2020 18:40:42 +0000 (19:40 +0100)
commit01b9cb0dea76c70b3696cdff79c2e8f5772a6356
treef9ae9aab719dce61419b6d4d28b2306421359e7f
parent9b2cac94698794c49b993db0646c37c2188dcfae
iio: sx9310: Fixes various memory handling

Makes use __aligned(8) to ensure that the timestamp is correctly aligned
when we call io_push_to_buffers_with_timestamp().
Also makes use of sizeof() for regmap_bulk_read instead of static value.

Signed-off-by: Daniel Campello <campello@chromium.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/sx9310.c