projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
650cda2
)
Input: gameport - use IS_REACHABLE() instead of open-coding it
author
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Fri, 7 Jul 2023 23:18:29 +0000
(16:18 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Fri, 7 Jul 2023 23:53:48 +0000
(16:53 -0700)
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>
include/linux/gameport.h
patch
|
blob
|
history
diff --git
a/include/linux/gameport.h
b/include/linux/gameport.h
index 0a221e768ea4f6c92ff6bef47a5c4c3f85fe12ad..07e370113b2b6558faf293c11bebe5ac7ca85ea6 100644
(file)
--- 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 */