login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
November
»
13
Re: [PATCH 2/2] add device function for usb serial console
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Sergei Shtylyov <sshtylyov@...>
To: Kevin Hao <kexin.hao@...>
Cc: LKML <linux-kernel@...>, <gregkh@...>, Alan Cox <alan@...>, <linux-usb@...>
Subject:
Re: [PATCH 2/2] add device function for usb serial console
Date: Thursday, November 13, 2008 - 10:59 am
Hello. Kevin Hao wrote:
quoted text
> Add device funtion for usb serial console, so we can open /dev/console > when we use a usb serial device as console.
quoted text
> Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
quoted text
> diff --git a/drivers/usb/serial/console.c b/drivers/usb/serial/console.c > index 5b95009..1dbb203 100644 > --- a/drivers/usb/serial/console.c > +++ b/drivers/usb/serial/console.c > @@ -241,12 +241,25 @@ static void usb_console_write(struct console *co, > } > } > > +static struct tty_driver *usb_console_device(struct console *co, int *index) > +{ > + struct tty_driver **p = (struct tty_driver **)co->data; > + > + if (!*p) > + return NULL; > + > + *index = co->index; > + return (struct tty_driver *)(*p);
Type cast not needed here. WBR, Sergei --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/2] fix two bugs in usb serial console
, Kevin Hao
, (Wed Nov 12, 9:53 pm)
[PATCH 1/2] init tty kref in usb serial console setup
, Kevin Hao
, (Wed Nov 12, 9:53 pm)
[PATCH 2/2] add device function for usb serial console
, Kevin Hao
, (Wed Nov 12, 9:53 pm)
Re: [PATCH 2/2] add device function for usb serial console
, Andrew Morton
, (Fri Nov 14, 6:36 pm)
Re: [PATCH 2/2] add device function for usb serial console
, Sergei Shtylyov
, (Thu Nov 13, 10:59 am)
[PATCH v2] add device function for usb serial console
, Kevin Hao
, (Thu Nov 13, 9:30 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
Andi Kleen
Re: [PATCH] x86: Construct 32 bit boot time page tables in native format.
openbsd-misc
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: Possible regression in HTB
Natalie Protasevich
[BUG] New Kernel Bugs
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
git
:
Colocation donated by:
Who's online
There are currently
0 users
and
634 guests
online.
Syndicate