]> www.infradead.org Git - users/jedix/linux-maple.git/commit
video: Handle HAS_IOPORT dependencies
authorNiklas Schnelle <schnelle@linux.ibm.com>
Tue, 14 May 2024 13:08:58 +0000 (15:08 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 29 Jul 2024 08:16:11 +0000 (10:16 +0200)
commit8423895d456672736a278d64f86d8b434eef2b54
treebd5ef0bf330be625ba70810439946fb1965bf54c
parent8400291e289ee6b2bf9779ff1c83a291501f017b
video: Handle HAS_IOPORT dependencies

In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at
compile time. We thus need to #ifdef functions and their callsites which
unconditionally use these I/O accessors. In the include/video/vga.h
these are conveniently all those functions with the vga_io_* prefix.

Co-developed-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Helge Deller <deller@gmx.de>
include/video/vga.h