drivers/staging: refactor dgnc tty registration.
authorHaim Daniel <haimdaniel@gmail.com>
Mon, 15 May 2017 14:10:18 +0000 (17:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 May 2017 11:55:23 +0000 (13:55 +0200)
commite3b5fde7eb3797f6401542f99bf10ac253272b70
treebb6ad08a91e7f455e06b3b5ddadb1d739c504c9d
parent052181bb25621fc3ba214b46dcc29e894f024456
drivers/staging: refactor dgnc tty registration.

-remove duplicate tty allocation code for serial and printer drivers.
-add missing tty c_ispeed and c_ospeed initialization to 9600.
-fix sparse warning: too long initializer-string for array of char.

This patch was only unit tested due to lack of the actual hardware.

Signed-off-by: Haim Daniel <haimdaniel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.h
drivers/staging/dgnc/dgnc_tty.c