From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman <gregkh@suse.de>
Subject: Re: [PATCH 2/2] serport: place serport serio device correctly in the device tree
Date: Tue, 10 Aug 2010 20:27:44 -0700 [thread overview]
Message-ID: <20100811032744.GA10035@core.coreip.homeip.net> (raw)
In-Reply-To: <1281363770-23598-2-git-send-email-dbaryshkov@gmail.com>
On Mon, Aug 09, 2010 at 06:22:50PM +0400, Dmitry Eremin-Solenikov wrote:
> Make serport serio device to be a child of corresponding tty device
> instead of just hanging at /sys/devices/serioX.
>
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Looks good to me.
Acked-by: Dmitry Torokhov <dtor@mail.ru>
> ---
> drivers/input/serio/serport.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/input/serio/serport.c b/drivers/input/serio/serport.c
> index 6d34511..6e362de 100644
> --- a/drivers/input/serio/serport.c
> +++ b/drivers/input/serio/serport.c
> @@ -165,6 +165,7 @@ static ssize_t serport_ldisc_read(struct tty_struct * tty, struct file * file, u
> serio->open = serport_serio_open;
> serio->close = serport_serio_close;
> serio->port_data = serport;
> + serio->dev.parent = tty->dev;
>
> serio_register_port(serport->serio);
> printk(KERN_INFO "serio: Serial port %s\n", tty_name(tty, name));
> --
> 1.7.1
>
--
Dmitry
next prev parent reply other threads:[~2010-08-11 3:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-09 14:22 [PATCH 1/2] tty: add tty_struct->dev pointer to corresponding device instance Dmitry Eremin-Solenikov
2010-08-09 14:22 ` [PATCH 2/2] serport: place serport serio device correctly in the device tree Dmitry Eremin-Solenikov
2010-08-11 3:27 ` Dmitry Torokhov [this message]
2010-08-09 15:08 ` [PATCH 1/2] tty: add tty_struct->dev pointer to corresponding device instance Alan Cox
2010-08-16 10:57 ` Dmitry Eremin-Solenikov
2010-08-16 15:01 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2010-08-06 16:29 [PATCH 1/2] tty_io: add an API to get device corresponding to tty_struct Dmitry Eremin-Solenikov
2010-08-06 16:29 ` [PATCH 2/2] serport: place serport serio device correctly in the device tree Dmitry Eremin-Solenikov
2010-08-06 16:57 ` Greg KH
2010-08-07 9:55 ` Dmitry Eremin-Solenikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100811032744.GA10035@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=dbaryshkov@gmail.com \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox