Skip to content

Commit

Permalink
fbdev: Add Kconfig options to select different fb_ops helpers
Browse files Browse the repository at this point in the history
Many fbdev drivers use the same set of fb_ops helpers. Add Kconfig
options to select them at once. This will help with making DRM's
fbdev emulation code more modular, but can also be used to simplify
fbdev's driver configs.

v3:
	* fix select statement (Jingfeng)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230530151228.22979-2-tzimmermann@suse.de
  • Loading branch information
Thomas Zimmermann committed Jun 1, 2023
1 parent 3367575 commit 3b99ee5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions drivers/video/fbdev/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,27 @@ config FB_DEFERRED_IO
bool
depends on FB

config FB_IO_HELPERS
bool
depends on FB
select FB_CFB_COPYAREA
select FB_CFB_FILLRECT
select FB_CFB_IMAGEBLIT

config FB_SYS_HELPERS
bool
depends on FB
select FB_SYS_COPYAREA
select FB_SYS_FILLRECT
select FB_SYS_FOPS
select FB_SYS_IMAGEBLIT

config FB_SYS_HELPERS_DEFERRED
bool
depends on FB
select FB_DEFERRED_IO
select FB_SYS_HELPERS

config FB_HECUBA
tristate
depends on FB
Expand Down

0 comments on commit 3b99ee5

Please sign in to comment.