mirror of
https://github.com/lkl/linux.git
synced 2025-12-18 23:53:03 +09:00
Input: gameport - use IS_REACHABLE() instead of open-coding it
Replace an open-coded preprocessor conditional with an equivalent helper. Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Link: https://lore.kernel.org/r/ZKYLLmsdCH0Gp7TO@google.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
@@ -63,7 +63,7 @@ struct gameport_driver {
|
||||
int gameport_open(struct gameport *gameport, struct gameport_driver *drv, int mode);
|
||||
void gameport_close(struct gameport *gameport);
|
||||
|
||||
#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE))
|
||||
#if IS_REACHABLE(CONFIG_GAMEPORT)
|
||||
|
||||
void __gameport_register_port(struct gameport *gameport, struct module *owner);
|
||||
/* use a define to avoid include chaining to get THIS_MODULE */
|
||||
|
||||
Reference in New Issue
Block a user