]> git.hungrycats.org Git - linux/commit
fbdev: atmel_lcdfb: Use of_device_get_match_data()
authorRosen Penev <rosenp@gmail.com>
Tue, 19 May 2026 00:36:13 +0000 (17:36 -0700)
committerHelge Deller <deller@gmx.de>
Sun, 7 Jun 2026 16:25:42 +0000 (18:25 +0200)
commit9402555579cf203151755f51b19ef0b4ecb9da71
tree34b2e564cfbafe7f2a310acafc490b964d6632c0
parent3b069f0596e169bc1b1a991fbba64ffaefe8de75
fbdev: atmel_lcdfb: Use of_device_get_match_data()

Use of_device_get_match_data() to retrieve the driver match data instead
of open-coding the OF match lookup and dereferencing match->data.

This also removes the deprecated of_device.h include from the driver.

No need for NULL check as every compatible has a corresponding data
component.

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/atmel_lcdfb.c