[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <fb550af2-37e0-40f2-a44b-52962337cea5@baylibre.com>
Date: Fri, 5 Sep 2025 14:12:49 -0500
From: David Lechner <dlechner@...libre.com>
To: Jonathan Cameron <jic23@...nel.org>
Cc: Andreas Klinger <ak@...klinger.de>, Nuno Sá
<nuno.sa@...log.com>, Andy Shevchenko <andy@...nel.org>,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iio: proximity: mb1232: use stack allocated scan struct
On 7/24/25 5:26 AM, Jonathan Cameron wrote:
> On Tue, 22 Jul 2025 17:39:17 -0500
> David Lechner <dlechner@...libre.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@...libre.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.
Powered by blists - more mailing lists