Return-Path: Date: Mon, 29 Aug 2016 11:57:13 +0200 From: Pavel Machek To: Rob Herring , vojtech@ucw.cz Cc: Greg Kroah-Hartman , Marcel Holtmann , Jiri Slaby , Sebastian Reichel , Arnd Bergmann , "Dr . H . Nikolaus Schaller" , Alan Cox , Loic Poulain , Peter Hurley , NeilBrown , Linus Walleij , linux-bluetooth@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 1/6] serio: add DT driver binding Message-ID: <20160829095713.GA14178@amd> References: <20160824232437.9446-1-robh@kernel.org> <20160824232437.9446-2-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20160824232437.9446-2-robh@kernel.org> List-ID: On Wed 2016-08-24 18:24:31, Rob Herring wrote: > This adds DT driver binding support to the serio bus. The parent of the > serio port device must have a device_node associated with it. Typically, > this would be the UART device node. The slave device must be a child node > of the UART device node. > > Signed-off-by: Rob Herring Acked-by: Pavel Machek Added vojtech to cc list, as he's original author. > diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c > index 1ca7f55..9e8eb7a 100644 > --- a/drivers/input/serio/serio.c > +++ b/drivers/input/serio/serio.c > @@ -36,6 +36,7 @@ > #include > #include > #include > +#include > > MODULE_AUTHOR("Vojtech Pavlik "); > MODULE_DESCRIPTION("Serio abstraction core"); > @@ -902,6 +907,10 @@ static int serio_bus_match(struct device *dev, struct device_driver *drv) > struct serio *serio = to_serio_port(dev); > struct serio_driver *serio_drv = to_serio_driver(drv); > > + if (of_driver_match_device(dev, drv)) { > + printk("matched %s\n", dev->of_node->name); printk probalby should be removed when moving out of RFC phase. Thanks, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html