Re: [PATCH v1] extcon: max14577: Use named initializers for the platform_device_id array
From: Krzysztof Kozlowski
Date: Wed Jun 17 2026 - 00:02:23 EST
On 16/06/2026 16:31, Uwe Kleine-König (The Capable Hub) wrote:
> Named initializers are better readable and more robust to changes of the
> struct definition. This robustness is relevant for a planned change to
> struct platform_device_id replacing .driver_data by an anonymous union.
>
> While touching this array drop commas before closing curly braces on the
> same line.
>
> Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
> ---
> drivers/extcon/extcon-max14577.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Best regards,
Krzysztof