]> git.hungrycats.org Git - linux/commit
fbdev: imxfb: Use of_device_get_match_data()
authorRosen Penev <rosenp@gmail.com>
Mon, 18 May 2026 21:13:03 +0000 (14:13 -0700)
committerHelge Deller <deller@gmx.de>
Sun, 7 Jun 2026 16:25:42 +0000 (18:25 +0200)
commit3b069f0596e169bc1b1a991fbba64ffaefe8de75
tree86a5f775dc795d964a43087e7b138522f427fd8e
parent84202754fb1727dc3ee87f47104e4162ecc8ba3a
fbdev: imxfb: Use of_device_get_match_data()

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@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/imxfb.c