lkml.org 
[lkml]   [2025]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] iio: proximity: mb1232: use stack allocated scan struct
From
On 7/24/25 5:26 AM, Jonathan Cameron wrote:
> On Tue, 22 Jul 2025 17:39:17 -0500
> David Lechner <dlechner@baylibre.com> wrote:
>
>> 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>
> Hi David,
>
> Applied to the testing branch of iio.git.
>
> I don't suppose you fancy a follow up to take that irqnr local to probe?
> If not I'll get to it at some point maybe.
>
It is also used in mb1232_read_distance(), so this wouldn't be trivial.

\
 
 \ /
  Last update: 2025-09-05 21:13    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog