From: Greg KH <greg@kroah.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: [PATCH 01/20] tty: Introduce a tty_port common structure
Date: Mon, 19 May 2008 10:51:21 -0700 [thread overview]
Message-ID: <20080519175121.GA25150@kroah.com> (raw)
In-Reply-To: <20080519174738.GA20961@uranus.ravnborg.org>
On Mon, May 19, 2008 at 07:47:39PM +0200, Sam Ravnborg wrote:
> Hi Alan.
>
> On Mon, May 19, 2008 at 03:50:13PM +0100, Alan Cox wrote:
> > From: Alan Cox <alan@redhat.com>
> >
> > Every tty driver has its own concept of a port structure and because they all
> > differ we cannot extract commonality. Begin fixing this by creating a structure
> > drivers can elect to use so that over time we can push fields into this and
> > create commonality and then introduce common methods.
> > ---
> >
> > drivers/char/tty_io.c | 37 +++++++++++++++++++++++++++++++++++++
> > include/linux/tty.h | 29 +++++++++++++++++++++++++++++
> > 2 files changed, 66 insertions(+), 0 deletions(-)
> >
> >
> > diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
> > index 49c1a22..fb17b18 100644
> > --- a/drivers/char/tty_io.c
> > +++ b/drivers/char/tty_io.c
> > @@ -2004,6 +2004,43 @@ ssize_t redirected_tty_write(struct file *file, const char __user *buf,
> > return tty_write(file, buf, count, ppos);
> > }
> >
> > +void tty_port_init(struct tty_port *port)
> > +{
> > + memset(port, 0, sizeof(*port));
> > + init_waitqueue_head(&port->open_wait);
> > + init_waitqueue_head(&port->close_wait);
> > + mutex_init(&port->mutex);
> > +}
> > +
> > +EXPORT_SYMBOL(tty_port_init);
> A small nitpick...
> The typical style is to let the EXPORT_SYMBOL follow the closing
> brace with no extra empty line.
I'll run them through checkpatch.pl and fix up any minor things like
this before sending them off, that's part of my normal patch-queue
process :)
thanks,
greg k-h
next prev parent reply other threads:[~2008-05-19 17:52 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-19 14:50 [PATCH 00/20] Implment a tty port structure and supporting logic Alan Cox
2008-05-19 14:50 ` [PATCH 01/20] tty: Introduce a tty_port common structure Alan Cox
2008-05-19 17:47 ` Sam Ravnborg
2008-05-19 17:51 ` Greg KH [this message]
2008-05-19 19:48 ` Alan Cox
2008-05-19 21:36 ` Greg KH
2008-05-19 14:50 ` [PATCH 02/20] tty: Clean up tiocmset Alan Cox
2008-05-19 14:50 ` [PATCH 03/20] epca: use tty_port Alan Cox
2008-05-19 14:50 ` [PATCH 04/20] isicom: " Alan Cox
2008-05-19 14:50 ` [PATCH 05/20] moxa: " Alan Cox
2008-05-19 14:50 ` [PATCH 06/20] mxser: " Alan Cox
2008-05-19 14:50 ` [PATCH 07/20] riscom8: " Alan Cox
2008-05-19 14:50 ` [PATCH 08/20] rocket: " Alan Cox
2008-05-19 14:50 ` [PATCH 09/20] synclink: " Alan Cox
2008-05-19 14:51 ` [PATCH 10/20] esp: " Alan Cox
2008-05-19 14:51 ` [PATCH 11/20] istallion: " Alan Cox
2008-05-19 14:51 ` [PATCH 12/20] stallion: " Alan Cox
2008-05-19 14:51 ` [PATCH 13/20] cyclades: " Alan Cox
2008-05-19 14:51 ` [PATCH 14/20] gs: " Alan Cox
2008-05-19 14:51 ` [PATCH 15/20] serial: " Alan Cox
2008-05-19 14:51 ` [PATCH 17/20] riscom8: remove bogus checks Alan Cox
2008-05-19 14:51 ` [PATCH 18/20] tty: add more tty_port fields Alan Cox
2008-05-19 14:51 ` [PATCH 19/20] whiteheat: coding style Alan Cox
2008-05-19 14:52 ` [PATCH 20/20] whiteheat: fix bugs found in the tidy and audit Alan Cox
2008-05-19 16:50 ` [PATCH 00/20] Implment a tty port structure and supporting logic Greg KH
2008-05-19 18:27 ` Alan Cox
2008-05-20 8:52 ` Andrew Morton
2008-05-20 17:23 ` Greg KH
2008-05-20 18:53 ` Alan Cox
2008-05-19 22:39 ` Aristeu Rozanski
2008-05-20 8:31 ` Alan Cox
2008-05-27 18:05 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080519175121.GA25150@kroah.com \
--to=greg@kroah.com \
--cc=akpm@osdl.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox