]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: proximity: pulsedlight-lidar-lite-v2: use stack allocated scan struct
authorDavid Lechner <dlechner@baylibre.com>
Tue, 22 Jul 2025 22:34:45 +0000 (17:34 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Aug 2025 10:57:04 +0000 (11:57 +0100)
commit8e7a21e103d7192ae267045cca79290f31333910
tree6bae24d891752f2b8ed8505a0ed525ca077dc5d3
parentf235ec59343b2a7cb5844a5656aca6360829ca4b
iio: proximity: pulsedlight-lidar-lite-v2: 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-pulsedlight-lidar-lite-v2-use-stack-allocated-scan-struct-v1-1-4c253339b941@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c