Re: [PATCH v2 3/6] crypto: artpec6 - Simplify with of_device_get_match_data()
From: Jesper Nilsson
Date: Fri Nov 07 2025 - 04:39:42 EST
On Fri, Nov 07, 2025 at 09:15:50AM +0100, Krzysztof Kozlowski wrote
> Driver's probe function matches against driver's of_device_id table, so
> of_match_node() can be simplified with of_device_get_match_data().
>
> This requires changing the enum used in the driver match data entries to
> non-zero, to be able to recognize error case of
> of_device_get_match_data().
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
Acked-by: Jesper Nilsson <jesper.nilsson@xxxxxxxx>
/^JN - Jesper Nilsson
--
Jesper Nilsson -- jesper.nilsson@xxxxxxxx