[PATCH 2/5] Input: ads7846 - simplify sample filtering
Linus Walleij
linusw at kernel.org
Sat Nov 21 12:40:25 PST 2026
On Thu, Nov 12, 2026 at 7:50 AM Dmitry Torokhov
<dmitry.torokhov at gmail.com> 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 at gmail.com>
Reviewed-by: Linus Walleij <linusw at kernel.org>
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list