Re: [PATCH v4 1/6] nfc: s3fwrn5: drop of_match_ptr() from the I2C driver
Krzysztof Kozlowski <[email protected]>
| Newsgroups | dev.linux.lists.oe-linux-nfc,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <20260811-uber-hyena-of-acceptance-da8d5c@quoll> |
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 <[email protected]>
> ---
> drivers/nfc/s3fwrn5/i2c.c | 2 +-
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Best regards,
Krzysztof