Re: [PATCH v4 1/6] nfc: s3fwrn5: drop of_match_ptr() from the I2C driver
From: Krzysztof Kozlowski
Date: Tue Aug 11 2026 - 03:44:34 EST
On Fri, Aug 07, 2026 at 04:09:56AM +0200, Jorijn van der Graaf wrote:
> Since commit 9739e07fdb29 ("nfc: Drop __maybe_unused from of_device_id
> tables") the OF match table relies on its MODULE_DEVICE_TABLE()
> reference to count as used, while of_match_ptr() still discards the
> .of_match_table reference on !CONFIG_OF builds. Drop of_match_ptr() so
> every configuration uses the same code; the S3NRN4V support added later
> in this series carries its variant selector in this table's match data.
>
> Assisted-by: Claude:claude-fable-5
> Assisted-by: Claude:claude-opus-5
> Signed-off-by: Jorijn van der Graaf <jorijnvdgraaf@xxxxxxxxxxxxx>
> ---
> drivers/nfc/s3fwrn5/i2c.c | 2 +-
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Best regards,
Krzysztof