Re: [PATCH v5 0/4] ti-ads7950: fix gpio handling and facelift
From: David Lechner
Date: Sat Apr 11 2026 - 17:40:00 EST
On 4/5/26 11:39 PM, Dmitry Torokhov wrote:
> The original reason for this series is to make sure ti_ads7950_get()
> returns result in range [0, 1] or a negative error code to comply with
> gpiolib requirement.
>
> During review David noticed the fact that the function also clobbers
> gpio state. Fixing that lead to adding cleanups using guard() and devm.
>
Tested-by: David Lechner <dlechner@xxxxxxxxxxxx>