Thread (5 messages) 5 messages, 3 authors, 2008-01-14

Re: [PATCH] ACPI: Put button input devices in correct place in sysfs

From: Andrey Borzenkov <hidden>
Date: 2007-11-11 08:42:45
Also in: linux-acpi
Subsystem: acpi, the rest · Maintainers: "Rafael J. Wysocki", Linus Torvalds

On Tuesday 06 November 2007, Dmitry Torokhov wrote:
Hi Andrey,

On Nov 6, 2007 12:51 PM, Andrey Borzenkov [off-list ref] wrote:
quoted
Properly set up parent on input device registered by the button driver.
Seems to be a popular topic today :)
quoted
+       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 <redacted>



Signed-off-by: Andrey Borzenkov <redacted>

---

 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:

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help