[PATCH v2 3/6] crypto: artpec6 - Simplify with of_device_get_match_data()
Jesper Nilsson
jesper.nilsson at axis.com
Fri Nov 7 01:39:36 PST 2025
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 at linaro.org>
Acked-by: Jesper Nilsson <jesper.nilsson at axis.com>
/^JN - Jesper Nilsson
--
Jesper Nilsson -- jesper.nilsson at axis.com
More information about the linux-arm-kernel
mailing list