Re: [PATCH 08/10] tty_io: export tty_class

From: Dmitry Eremin-Solenikov
Date: Tue Jun 02 2009 - 10:23:14 EST


On Mon, Jun 01, 2009 at 04:34:18PM +0100, Alan Cox wrote:
> > I used class_find_device finding the device with matching minor. Will it be
> > acceptable, if I just move this code into tty_* file and export it as
> > to modules?
>
> Yes - create a proper tty helper function for doing the job and document
> what it does. That way if the tty layer is changed it is obvious that
> this code also needs considering.

Is this suitable: