Input: gameport - provide default trigger() and read()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 6 Jun 2023 18:16:25 +0000 (11:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 6 Jun 2023 18:42:51 +0000 (11:42 -0700)
commitf11f1a92c17385ff4d6e2bc8002d59aed70b98c4
tree7d4f1c4452d3b3af5459c6d7a52ba2e61c7c936d
parentd9f12a3bbb6d1afe872425a8fa2612945975cfb8
Input: gameport - provide default trigger() and read()

Instead of constantly checking pointer(s) for non-NULL-ness provide
default implementations of trigger() and read() and instantiate them during
pore registration if driver-specific versions were not provided.

Link: https://lore.kernel.org/r/ZGvoqP5PAAsJuky4@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/gameport/gameport.c
include/linux/gameport.h