]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: proximity: vl53l0x-i2c: use stack allocated scan struct
authorDavid Lechner <dlechner@baylibre.com>
Tue, 22 Jul 2025 22:26:39 +0000 (17:26 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Aug 2025 10:57:04 +0000 (11:57 +0100)
commitff2501ff5c329a1a8bb0715e033d3b8af1e76de2
tree7054fc9a2733623585ee053e3eb6bfa999b9a9e6
parent8e7a21e103d7192ae267045cca79290f31333910
iio: proximity: vl53l0x-i2c: use stack allocated scan struct

Use a stack allocated struct for the scan data instead of using the
driver state to store the struct. The scan data is not used outside of
the interrupt handler function so the struct does not need to exist
outside of that scope.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250722-iio-proximity-vl53l0x-i2c-use-stack-allocated-scan-struct-v1-1-42f127a6834f@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/vl53l0x-i2c.c