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

Dmitry Eremin-Solenikov
2009-06-01T15:10:25Z

2009/6/1 Alan Cox <alan@lxorguk.ukuu.org.uk>:
> On Mon,  1 Jun 2009 18:54:49 +0400
> Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> wrote:
>
>> Currently tty_class in a public variable in the tty_io.c
>> Export it to the modules to allow some usefull tricks.
>
> Thats exactly why it isn't exported. We don't want "tricks".

I'd like to find a struct device corresponding to the struct tty_struct
from the ldisc .open call. What would be the best way for me to do this?
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?

--
With best wishes
Dmitry