diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-07-07 16:18:29 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-07-07 16:53:48 -0700 |
commit | 1680ac7a5ad578d7acf819912557ceea4b4a5a88 (patch) | |
tree | 854f9453ae25b45d2773e66c5ea9b3b41432c585 /include/linux/gameport.h | |
parent | 650cda2ce25f08e8fae391b3ba6be27e7296c6a5 (diff) | |
download | lwn-1680ac7a5ad578d7acf819912557ceea4b4a5a88.tar.gz lwn-1680ac7a5ad578d7acf819912557ceea4b4a5a88.zip |
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>
Diffstat (limited to 'include/linux/gameport.h')
-rw-r--r-- | include/linux/gameport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/gameport.h b/include/linux/gameport.h index 0a221e768ea4..07e370113b2b 100644 --- a/include/linux/gameport.h +++ b/include/linux/gameport.h @@ -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 */ |