video: fbdev: controlfb: add COMPILE_TEST support
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 24 Mar 2020 13:45:04 +0000 (14:45 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 17 Apr 2020 13:50:02 +0000 (15:50 +0200)
commita07a63b0e24dd1316d11427601a9f83dc955bb40
tree6a300c07e04128a30720fb3b968db43b9c2305ee
parent38bf1077cf24cc20fdf459e51bb87b553f4fb79d
video: fbdev: controlfb: add COMPILE_TEST support

Add COMPILE_TEST support to controlfb driver for better compile
testing coverage.

While at it:
- convert driver to use eieio() and dcbf() helpers instead of
  open-coding them
- add invalid_vram_cache() helper to avoid code duplication

Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200324134508.25120-3-b.zolnierkie@samsung.com
drivers/video/fbdev/Kconfig
drivers/video/fbdev/controlfb.c