[PATCH] staging:net:fixed to fit tty_driver's kref field

Sam Ravnborg sam at ravnborg.org
Sun Jul 29 19:39:48 UTC 2012


On Sun, Jul 29, 2012 at 10:06:32PM +0800, Baodong Chen wrote:
> Fixed code to fix tty_driver's kref field
> Coding style issues
> 
> Signed-off-by: Baodong Chen <chenbdchenbd at gmail.com>

Hi Baodong.

As already pointed out by Jiri please split this
up in several patches.

[PATCH 1/x] staging:net:pc300: fix white space usage
[PATCH 2/x] staging:net:pc300: add proper kref support
[PATCH 3/x] staging:net:pc300: use pr_dev
[PATCH 4/x] staging:net:pc300: drop use of CPC_TTY_LOCK/CPC_TTY_UNLOCK macros
etc...

The latter two is not impleted yet but proposals for further cleanups.

	Sam

> ---
>  drivers/staging/net/pc300_tty.c |  123 ++++++++++++++++++++------------------
>  1 files changed, 65 insertions(+), 58 deletions(-)
> 
> diff --git a/drivers/staging/net/pc300_tty.c b/drivers/staging/net/pc300_tty.c
> index 4709f42..8a7277c 100644
> --- a/drivers/staging/net/pc300_tty.c
> +++ b/drivers/staging/net/pc300_tty.c

>  
> -	cpc_tty = (st_cpc_tty_area *) tty->driver_data; 
> +	cpc_tty = (st_cpc_tty_area *) tty->driver_data;
                                     ^drop space




More information about the devel mailing list