Subject: [PATCH] [acpi video] Update structures for attach/detach - Add ->v_device to struct acpi_video_enum - Add ->v_bus_id to struct acpi_video_device to denote the index of the device - Add declarations for attach/detach functionality Signed-off-by: Patrick Mochel --- drivers/acpi/drivers/video/video.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) applies-to: b9db3dc79b4a2c311e640bf371942ff337511369 715cfaaf0323cc0565a93a01b7e0bf634dbc1b85 diff --git a/drivers/acpi/drivers/video/video.h b/drivers/acpi/drivers/video/video.h index 0e14668..395ac73 100644 --- a/drivers/acpi/drivers/video/video.h +++ b/drivers/acpi/drivers/video/video.h @@ -36,7 +36,8 @@ ACPI_MODULE_NAME("acpi_video"); struct acpi_video_dev { - unsigned long v_id; + u32 v_id; + u32 v_bus_id; u32 v_br_current; u32 v_br_ac; @@ -51,6 +52,9 @@ extern int video_dev_test(struct acpi_de extern int video_dev_init(struct acpi_video_dev * vd); extern const char * video_dev_string(struct acpi_video_dev * vd); +extern int video_bus_attach(struct acpi_video_dev * vd); +extern void video_bus_detach(struct acpi_video_dev * vd); + struct acpi_video_enum { union { @@ -73,6 +77,7 @@ struct acpi_video_enum { } __attribute__((packed)); u32 v_attrib; } __attribute__((packed)); + struct acpi_video_dev * v_device; }; #define VIDEO_DEVICE_MAX 8 --- 0.99.9.GIT