staging: dgnc: use pointer type of tty_struct
Subsystems (2)
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.
Signed-off-by Daeseok Youn <[email protected]>
---
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
@@ -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
Greg KH
maintainerQuoted 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 toserial_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