fbdev/core: Use list_for_each_entry() helper
authorJinjie Ruan <ruanjinjie@huawei.com>
Wed, 23 Aug 2023 07:21:49 +0000 (15:21 +0800)
committerHelge Deller <deller@gmx.de>
Thu, 31 Aug 2023 20:54:34 +0000 (22:54 +0200)
commit1520081a785a7d1609541b53a3d0f6494f829cc2
tree659e72e2a3bc5e71b87d3b3b4752e9619a4cca1c
parent87dfd85c38923acd9517e8df4afc908565df0961
fbdev/core: Use list_for_each_entry() helper

Convert list_for_each() to list_for_each_entry() so that the pos
list_head pointer and list_entry() call are no longer needed, which
can reduce a few lines of code. No functional changed.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/core/fbsysfs.c
drivers/video/fbdev/core/modedb.c