Skip to contentSkip to conversation

staging: dgnc: use pointer type of tty_struct

PATCH In review Daeseok Youn 2 participants 3 messages Mar 14, 2016 – Mar 22, 2016

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

PATCH 2/3 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.

---
 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 953c891..15abe15 100644
@@ -202,9 +202,9 @@ struct dgnc_board {
 						 * to our channels.
 						 */
 
-	struct tty_driver serial_driver;
+	struct tty_driver *serial_driver;
 	char		SerialName[200];
-	struct tty_driver print_driver;
+	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

Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 1 line · Daeseok Youn

For using tty_alloc_driver, SerialDriver has to be pointer type.

Yes, but you aren't calling tty_alloc_driver, so this patch totally breaks the working code :(

Please be more careful...

greg k-h

#2 lore raw

2016-03-22 6:05 GMT+09:00 Greg KH <[email protected]>:

Quoted 5 lines · Daeseok Youn
Quoted 1 line

For using tty_alloc_driver, SerialDriver has to be pointer type.

Yes, but you aren't calling tty_alloc_driver, so this patch totally breaks the working code :(

yes.. my changelog was NOT good enough to explain.
I was tried to make this patch based on "staging-testing branch" of staging git tree.

Actually, I sent 3 patches
[1/3] staging: dgnc: fix camelcase of SerialDriver and PrintDriver [2/3] staging: dgnc: use pointer type of tty_struct [3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

without 1/3 patch set, it can break the working code.. (you left a comment on 1/3 and also it couldn't be taken.)

Quoted 2 lines

Please be more careful...

Yes, I will be..
Sorry. :-(

I will resend a series of patches for this

thanks.
regards,
Daeseok.

Quoted 2 lines

greg k-h