Input: gameport - add ISA and HAS_IOPORT dependencies
authorNiklas Schnelle <schnelle@linux.ibm.com>
Wed, 5 Jul 2023 21:56:28 +0000 (14:56 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 6 Jul 2023 00:32:34 +0000 (17:32 -0700)
commit650cda2ce25f08e8fae391b3ba6be27e7296c6a5
tree2ff79e4fd0e68b43922dfd514168c0c887b97326
parent8c9cce9cb81b5fdc6e66bf3f129727b89e8daab7
Input: gameport - add ISA and HAS_IOPORT dependencies

In a future patch HAS_IOPORT=n will result in inb()/outb() and friends
not being declared. As ISA already implies HAS_IOPORT we can simply add
this dependency and guard sections of code using inb()/outb() as
alternative access methods.

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>
Link: https://lore.kernel.org/r/20230703152355.3897456-2-schnelle@linux.ibm.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/gameport/Kconfig
drivers/input/gameport/gameport.c