[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170617105754.GA31689@sanghar>
Date: Sat, 17 Jun 2017 11:57:54 +0100
From: Okash Khawaja <okash.khawaja@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Andy Shevchenko <andy.shevchenko@...il.com>,
Samuel Thibault <samuel.thibault@...-lyon.org>,
Jiri Slaby <jslaby@...e.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
devel@...verdev.osuosl.org, Kirk Reiser <kirk@...sers.ca>,
speakup@...ux-speakup.org, Chris Brannon <chris@...-brannons.com>
Subject: Re: [patch 1/2] staging: speakup: add function to convert dev name
to number
On Sat, Jun 17, 2017 at 12:25:34PM +0200, Greg Kroah-Hartman wrote:
> On Sat, Jun 17, 2017 at 11:16:44AM +0100, Okash Khawaja wrote:
> > Hi,
> >
> > On Thu, Jun 15, 2017 at 07:52:51AM +0100, Okash Khawaja wrote:
> > > On Wed, Jun 14, 2017 at 03:04:18PM +0200, Greg Kroah-Hartman wrote:
> > > > The console stuff is odd though, but that is each driver defining the
> > > > name for itself, major/minor does not apply. Also, a separate driver is
> > > > not having to figure this all out. I wonder if we could just add a tty
> > > > core function for this as it does know the name of everything that has
> > > > been registered with it, right?
> > >
> > > I can start working on a patch for this. I'm still new to the tty code
> > > so will follow up with any questions I might have.
> >
> > I've put together this function for converting device name to number.
> > It traverses tty_drivers list looking for corresponding dev name and
> > index. Is this the right approach?
>
> Yes, this looks great, nice job! It is a lot simpler than your previous
> function, and now you are not limited to just a subset off the different
> serial ports in the system.
>
> Keep up the good work, it's really appreciated.
Great, thanks. I'll re-send the full patch set as v2.
Okash
Powered by blists - more mailing lists