Subject: [PATCH] [acpi ec] Add setup option and variable for faking an ECDT-based EC device Signed-off-by: Patrick Mochel --- drivers/acpi/drivers/ec/driver.c | 1 + drivers/acpi/drivers/ec/ec.h | 1 + drivers/acpi/drivers/ec/setup.c | 9 +++++++++ 3 files changed, 11 insertions(+), 0 deletions(-) applies-to: 31ef8b21fe57ddeb508fac7d894fc699539aa280 37d44590c259da65f5f7b52733c0acf4c6c7d194 diff --git a/drivers/acpi/drivers/ec/driver.c b/drivers/acpi/drivers/ec/driver.c index a6aa5c6..4551bd3 100644 --- a/drivers/acpi/drivers/ec/driver.c +++ b/drivers/acpi/drivers/ec/driver.c @@ -15,6 +15,7 @@ #include #include "ec.h" +int ec_fake_ecdt = 0; int ec_poll_mode = EC_MODE_INTR; struct acpi_ec * first_ec = NULL; diff --git a/drivers/acpi/drivers/ec/ec.h b/drivers/acpi/drivers/ec/ec.h index f926be3..3ff7590 100644 --- a/drivers/acpi/drivers/ec/ec.h +++ b/drivers/acpi/drivers/ec/ec.h @@ -62,6 +62,7 @@ struct acpi_ec { * driver.c */ extern int ec_poll_mode; +extern int ec_fake_ecdt; extern struct acpi_ec * first_ec; /* diff --git a/drivers/acpi/drivers/ec/setup.c b/drivers/acpi/drivers/ec/setup.c index b951dbe..dc158d0 100644 --- a/drivers/acpi/drivers/ec/setup.c +++ b/drivers/acpi/drivers/ec/setup.c @@ -20,3 +20,12 @@ static int __init setup_ec_mode(char *st } __setup("ec_intr=", setup_ec_mode); + + +static int __init setup_fake_ecdt(char *str) +{ + ec_fake_ecdt = 1; + return 0; +} + +__setup("acpi_fake_ecdt", setup_fake_ecdt); --- 0.99.9.GIT