Re: [PATCH] nfc: s3fwrn5: switch to GPIO descriptor API

From: Krzysztof Kozlowski

Date: Tue Apr 14 2026 - 06:40:53 EST


On 14/04/2026 12:22, deep@xxxxxxxxxxxxxxxxxx wrote:
> From: Kenet Jovan Sokoli <deep@xxxxxxxxxxxxxxxxxx>
>
> I am working on cleaning up some legacy GPIO usage in the NFC subsystem.
> This patch converts the s3fwrn5 driver to use the modern descriptor based
> GPIO API instead of the old integer based one.
>
> Specifically:
> - I changed the gpio_en and gpio_fw_wake types to struct gpio_desc.
> - Replaced the manual DT parsing with devm_gpiod_get() in the probe
> functions.
> - Updated the calls in phy_common.c to use gpiod_set_value().
>
> This also allowed me to remove the s3fwrn5_i2c_parse_dt and
> s3fwrn82_uart_parse_dt functions as they are no longer needed with the
> new API.
>
> Signed-off-by: Kenet Jovan Sokoli <deep@xxxxxxxxxxxxxxxxxx>
> ---
> I have verified that this patch builds successfully with "make M=drivers/nfc/s3fwrn5"
> "scripts/checkpatch.pl" with no errors or warnings.
> This is very complicated stuff, but I am learning a lot by doing these cleanup works.
> I really hope I can contribute as much as possible to this environment, little by little.
> ---


Please do not duplicate existing work needlessly.

https://lore.kernel.org/all/?q=dfn%3Adrivers%2Fnfc%2Fs3fwrn5%2Fi2c.c

Best regards,
Krzysztof