staging: dgnc: use pointer type of tty_struct
Subsystems (2)
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
@@ -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
Greg KH
maintainerQuoted 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
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