Re: [PATCH 2/5] Input: ads7846 - simplify sample filtering

From: Linus Walleij

Date: Sat Nov 21 2026 - 15:40:43 EST


On Thu, Nov 12, 2026 at 7:50 AM Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:

> The filter and filter_data members of struct ads7846, along with the
> generic signature of ads7846_debounce_filter(), are leftovers from
> custom filter callbacks that were removed in commit 937f5d5ec642
> ("Input: ads7846 - remove custom filter handling functions from pdata").
>
> Drop the filter and filter_data function pointers, remove the unused
> ads7846_no_filter() stub, simplify ads7846_debounce_filter() to take
> struct ads7846 and the sample value directly, and call it without
> pointer indirection.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>

Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>

Yours,
Linus Walleij