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:
parent
650cda2ce2
commit
1680ac7a5a
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue