arch: Remove struct fb_info from video helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 29 Mar 2024 20:32:11 +0000 (21:32 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 May 2024 15:07:50 +0000 (17:07 +0200)
commitf178e96de7f0868e1b4d6df687794961f30125f2
tree290381ec60109f2e5165a308e58d960c18e93c61
parentf25eae2c405cbe810f8c52d743ea2b507c3fc301
arch: Remove struct fb_info from video helpers

The per-architecture video helpers do not depend on struct fb_info
or anything else from fbdev. Remove it from the interface and replace
fb_is_primary_device() with video_is_primary_device(). The new helper
is similar in functionality, but can operate on non-fbdev devices.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Helge Deller <deller@gmx.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Andreas Larsson <andreas@gaisler.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: x86@kernel.org
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/parisc/include/asm/fb.h
arch/parisc/video/fbdev.c
arch/sparc/include/asm/fb.h
arch/sparc/video/fbdev.c
arch/x86/include/asm/fb.h
arch/x86/video/fbdev.c
drivers/video/fbdev/core/fbcon.c
include/asm-generic/fb.h