Re: [RESEND PATCH] auxdisplay: img-ascii-lcd: Use device_get_match_data()

From: Miguel Ojeda
Date: Thu Nov 30 2023 - 13:55:44 EST


On Wed, Nov 15, 2023 at 10:02 PM Rob Herring <robh@xxxxxxxxxx> wrote:
>
> + cfg = device_get_match_data(&pdev->dev);

This sounds good to me, but a couple notes:

- This could be `dev` since we have it, no?

- Orthogonally, should we just directly initialize `cfg` since now we can?

Cc'ing Geert as well since he was the last one touching the file (in
fact, he added the `dev` variable).

Cheers,
Miguel