Skip to contentSkip to conversation

Input: penmount: Add serial device bus support and dependency.

PATCH New John Sung 1 participant 1 message Jan 7, 2022

Subsystems (2)
lore
Share & tools
lore

John Sung

author
#0 lore raw

PATCH v2 1/1 Input: penmount: Add serial device bus support and dependency.

Currently the penmount touchscreen driver registers as a serio driver, which seems not supporting device tree binding. This patch tries to support both serio and serdev in a single module. For this purpose, the module implements module_init and module_exit instead of using module_serio_driver. The module is also modified to share input codes for both serio and serdev.

---
 drivers/input/touchscreen/Kconfig    |   3 +
 drivers/input/touchscreen/penmount.c | 311 +++++++++++++++++++++------
 2 files changed, 254 insertions(+), 60 deletions(-)
drivers/input/touchscreen/Kconfig +3 -0
index 2f6adfb7b938..151bb3687280 100644
@@ -720,6 +720,9 @@ config TOUCHSCREEN_HTCPEN
 config TOUCHSCREEN_PENMOUNT
 	tristate "Penmount serial touchscreen"
 	select SERIO
+	select SERIO_SERPORT
+	depends on TTY
+	depends on SERIAL_DEV_BUS
 	help
 	  Say Y here if you have a Penmount serial touchscreen connected to
 	  your system.
drivers/input/touchscreen/penmount.c +251 -60

444 lines not on this page · raw message

Signature · 1 line
2.25.1