From: Andrey Borzenkov <arvidjaar@mail.ru>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-acpi@vger.kernel.org, linux-input@atrey.karlin.mff.cuni.cz,
David Brownell <david-b@pacbell.net>
Subject: Re: [PATCH] ACPI: Put button input devices in correct place in sysfs
Date: Sun, 11 Nov 2007 11:42:45 +0300 [thread overview]
Message-ID: <200711111142.52346.arvidjaar@mail.ru> (raw)
In-Reply-To: <d120d5000711061247l5102875bg9d9b841086dd77b5@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1267 bytes --]
On Tuesday 06 November 2007, Dmitry Torokhov wrote:
> Hi Andrey,
>
> On Nov 6, 2007 12:51 PM, Andrey Borzenkov <arvidjaar@mail.ru> wrote:
> > Properly set up parent on input device registered by the button driver.
> >
>
> Seems to be a popular topic today :)
>
> >
> > + input->cdev.dev = &device->dev;
>
> Please don't use cdev, but rather input_dev->dev.parent. cdev is going
> away soon.
> I sent a patch a couple of days ago to teh acpi list...
>
You mean button patch? I could find only video one.
Just in case, here is updated version.
Subject: [PATCH] Make real parent for ACPI button input devices
From: Andrey Borzenkov <arvidjaar@mail.ru>
Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
---
drivers/acpi/button.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
index 24a7865..6c5da83 100644
--- a/drivers/acpi/button.c
+++ b/drivers/acpi/button.c
@@ -449,6 +449,7 @@ static int acpi_button_add(struct acpi_device *device)
input->phys = button->phys;
input->id.bustype = BUS_HOST;
input->id.product = button->type;
+ input->dev.parent = &device->dev;
switch (button->type) {
case ACPI_BUTTON_TYPE_POWER:
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-11-11 8:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-06 17:51 [PATCH] ACPI: Put button input devices in correct place in sysfs Andrey Borzenkov
2007-11-06 20:47 ` Dmitry Torokhov
2007-11-11 8:42 ` Andrey Borzenkov [this message]
2007-11-14 17:32 ` Dmitry Torokhov
2008-01-14 22:25 ` Carlos Corbacho
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=200711111142.52346.arvidjaar@mail.ru \
--to=arvidjaar@mail.ru \
--cc=david-b@pacbell.net \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-input@atrey.karlin.mff.cuni.cz \
/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;
as well as URLs for NNTP newsgroup(s).