* [PATCH] ACPI: Put button input devices in correct place in sysfs
@ 2007-11-06 17:51 Andrey Borzenkov
2007-11-06 20:47 ` Dmitry Torokhov
0 siblings, 1 reply; 5+ messages in thread
From: Andrey Borzenkov @ 2007-11-06 17:51 UTC (permalink / raw)
To: linux-acpi, linux-input; +Cc: dmitry.torokhov
[-- Attachment #1: Type: text/plain, Size: 587 bytes --]
Properly set up parent on input device registered by the button driver.
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 301e832..5b0f065 100644
--- a/drivers/acpi/button.c
+++ b/drivers/acpi/button.c
@@ -450,6 +450,7 @@ static int acpi_button_add(struct acpi_device *device)
break;
}
+ input->cdev.dev = &device->dev;
error = input_register_device(input);
if (error)
goto err_remove_handlers;
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ACPI: Put button input devices in correct place in sysfs
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
0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Torokhov @ 2007-11-06 20:47 UTC (permalink / raw)
To: Andrey Borzenkov; +Cc: linux-acpi, linux-input, David Brownell
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...
--
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ACPI: Put button input devices in correct place in sysfs
2007-11-06 20:47 ` Dmitry Torokhov
@ 2007-11-11 8:42 ` Andrey Borzenkov
2007-11-14 17:32 ` Dmitry Torokhov
2008-01-14 22:25 ` Carlos Corbacho
0 siblings, 2 replies; 5+ messages in thread
From: Andrey Borzenkov @ 2007-11-11 8:42 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: linux-acpi, linux-input, David Brownell
[-- 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 --]
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ACPI: Put button input devices in correct place in sysfs
2007-11-11 8:42 ` Andrey Borzenkov
@ 2007-11-14 17:32 ` Dmitry Torokhov
2008-01-14 22:25 ` Carlos Corbacho
1 sibling, 0 replies; 5+ messages in thread
From: Dmitry Torokhov @ 2007-11-14 17:32 UTC (permalink / raw)
To: Andrey Borzenkov; +Cc: linux-acpi, linux-input, David Brownell
On 11/11/07, Andrey Borzenkov <arvidjaar@mail.ru> wrote:
> 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.
Right, I got confused between the two...
>
> Just in case, here is updated version.
>
Please forward to Len Brown with
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Thanks!
--
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ACPI: Put button input devices in correct place in sysfs
2007-11-11 8:42 ` Andrey Borzenkov
2007-11-14 17:32 ` Dmitry Torokhov
@ 2008-01-14 22:25 ` Carlos Corbacho
1 sibling, 0 replies; 5+ messages in thread
From: Carlos Corbacho @ 2008-01-14 22:25 UTC (permalink / raw)
To: Andrey Borzenkov; +Cc: Dmitry Torokhov, linux-acpi, linux-input, Len Brown
Len,
Andrey's patch to the ACPI button driver still hasn't been applied to the ACPI
tree.
-Carlos
On Sunday 11 November 2007 08:42:45 Andrey Borzenkov wrote:
> 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:
--
E-Mail: carlos@strangeworlds.co.uk
Web: strangeworlds.co.uk
GPG Key ID: 0x23EE722D
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-01-14 22:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-11-14 17:32 ` Dmitry Torokhov
2008-01-14 22:25 ` Carlos Corbacho
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).