Skip to contentSkip to conversation

staging: dgnc: use pointer type of tty_struct

PATCH In review Daeseok Youn 2 participants 2 messages Mar 7, 2016 – Mar 11, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 staging: dgnc: use pointer type of tty_struct

For using tty_alloc_driver, SerialDriver has to be pointer type. It also has checkpatch.pl warning about Camelcase, so SerialDriver is changed to serial_driver.

---
V2: removes appended email header on top of commit log

 drivers/staging/dgnc/dgnc_driver.h |   4 +-
 drivers/staging/dgnc/dgnc_tty.c    | 118 ++++++++++++++++++-------------------
 2 files changed, 61 insertions(+), 61 deletions(-)
drivers/staging/dgnc/dgnc_driver.h +2 -2
index ce7cd9b..1c7a8fa 100644
@@ -205,9 +205,9 @@ struct dgnc_board {
 						 * to our channels.
 						 */
 
-	struct tty_driver	SerialDriver;
+	struct tty_driver *serial_driver;
 	char		SerialName[200];
-	struct tty_driver	PrintDriver;
+	struct tty_driver *print_driver;
 	char		PrintName[200];
 
 	bool		dgnc_Major_Serial_Registered;
drivers/staging/dgnc/dgnc_tty.c +59 -59

213 lines not on this page · raw message

1.9.1

maintainer
#1 lore raw
Quoted 3 lines · Daeseok Youn

For using tty_alloc_driver, SerialDriver has to be pointer type. It also has checkpatch.pl warning about Camelcase, so SerialDriver is changed to serial_driver.

Please only fix one thing per patch. This should be two different patches, right?

Also it doesn't apply properly to my tree, please rebase it against the staging-testing branch of staging.git and resend.

thanks,

greg k-h