[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100807123333.614169f1@lxorguk.ukuu.org.uk>
Date: Sat, 7 Aug 2010 12:33:33 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Dmitry Eremin-Solenikov <dbaryshkov@...il.com>
Cc: Greg Kroah-Hartman <gregkh@...e.de>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] tty_io: add an API to get device corresponding to
tty_struct
On Sat, 7 Aug 2010 13:55:02 +0400
Dmitry Eremin-Solenikov <dbaryshkov@...il.com> wrote:
> Some device drivers (mostly tty line disciplines) would like to have way
> to get a struct device instancve corresponding to passed tty_struct. Add
> respective API call.
Most of the kernel simply keeps a parent device pointer in the struct. If
we have a lookup method then we'll simply end up with a struct device in
each tty ldisc struct instead, and it will be harder to clean up later.
I think I'd much rather see this set when the tty is created and always
available. That would also let the whole tty layer use dev_err() and
friends usefully ?
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists