auxdisplay: img-ascii-lcd: Use device_get_match_data()
authorRob Herring <robh@kernel.org>
Wed, 15 Nov 2023 21:02:44 +0000 (15:02 -0600)
committerMiguel Ojeda <ojeda@kernel.org>
Fri, 1 Dec 2023 15:39:45 +0000 (16:39 +0100)
commitc52391fafcefe4c562bdac62088a2735c185b942
tree59a1f2a97e67831956946fa267ab8cce5e0bdfa7
parent2cc14f52aeb78ce3f29677c2de1f06c0e91471ab
auxdisplay: img-ascii-lcd: Use device_get_match_data()

Use preferred device_get_match_data() instead of of_match_device() to
get the driver match data. With this, adjust the includes to explicitly
include the correct headers.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Paul Burton <paulburton@kernel.org>
Link: https://lore.kernel.org/r/20231115210245.3744589-1-robh@kernel.org
[ As discussed, used `dev` and moved call to `cfg`'s initialization. ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
drivers/auxdisplay/img-ascii-lcd.c