|
@@ -54,8 +54,6 @@ static ssize_t irst_store_wakeup_events(struct device *dev,
|
|
|
const char *buf, size_t count)
|
|
|
{
|
|
|
struct acpi_device *acpi;
|
|
|
- struct acpi_object_list input;
|
|
|
- union acpi_object param;
|
|
|
acpi_status status;
|
|
|
unsigned long value;
|
|
|
int error;
|
|
@@ -67,13 +65,7 @@ static ssize_t irst_store_wakeup_events(struct device *dev,
|
|
|
if (error)
|
|
|
return error;
|
|
|
|
|
|
- param.type = ACPI_TYPE_INTEGER;
|
|
|
- param.integer.value = value;
|
|
|
-
|
|
|
- input.count = 1;
|
|
|
- input.pointer = ¶m;
|
|
|
-
|
|
|
- status = acpi_evaluate_object(acpi->handle, "SFFS", &input, NULL);
|
|
|
+ status = acpi_execute_simple_method(acpi->handle, "SFFS", value);
|
|
|
|
|
|
if (!ACPI_SUCCESS(status))
|
|
|
return -EINVAL;
|
|
@@ -116,8 +108,6 @@ static ssize_t irst_store_wakeup_time(struct device *dev,
|
|
|
const char *buf, size_t count)
|
|
|
{
|
|
|
struct acpi_device *acpi;
|
|
|
- struct acpi_object_list input;
|
|
|
- union acpi_object param;
|
|
|
acpi_status status;
|
|
|
unsigned long value;
|
|
|
int error;
|
|
@@ -129,13 +119,7 @@ static ssize_t irst_store_wakeup_time(struct device *dev,
|
|
|
if (error)
|
|
|
return error;
|
|
|
|
|
|
- param.type = ACPI_TYPE_INTEGER;
|
|
|
- param.integer.value = value;
|
|
|
-
|
|
|
- input.count = 1;
|
|
|
- input.pointer = ¶m;
|
|
|
-
|
|
|
- status = acpi_evaluate_object(acpi->handle, "SFTV", &input, NULL);
|
|
|
+ status = acpi_execute_simple_method(acpi->handle, "SFTV", value);
|
|
|
|
|
|
if (!ACPI_SUCCESS(status))
|
|
|
return -EINVAL;
|