Re: [PATCH] fbdev: imxfb: Use of_device_get_match_data()
From: Helge Deller
Date: Tue May 19 2026 - 03:53:09 EST
On 5/18/26 23:13, Rosen Penev wrote:
Use of_device_get_match_data() to fetch the platform ID entry directly
instead of open-coding an of_match_device() lookup. No NULL check is
needed as every compatible string has a corresponding data section.
This also lets the driver drop the of_device.h include.
Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
---
drivers/video/fbdev/imxfb.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
applied.
Thanks!
Helge