aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/x86/intel-smartconnect.c
AgeCommit message (Collapse)AuthorFilesLines
2013-09-24intel-smartconnect: convert acpi_evaluate_object() to acpi_evaluate_integer()Zhang Rui1-13/+3
acpi_evaluate_integer() is an ACPI API introduced to evaluate an ACPI control method that is known to have an integer return value. This API can simplify the code because the calling function does not need to use the specified acpi_buffer structure required by acpi_evaluate_object(); Convert acpi_evaluate_object() to acpi_evaluate_integer() in drivers/platform/x86/intel-smartconnect.c in this patch. Signed-off-by: Zhang Rui <[email protected]> CC: Matthew Garrett <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
2013-09-24intel-smartconnect: convert acpi_evaluate_object() to ↵Zhang Rui1-10/+1
acpi_execute_simple_method() acpi_execute_simple_method() is a new ACPI API introduced to invoke an ACPI control method that has single integer parameter and no return value. Convert acpi_evaluate_object() to acpi_execute_simple_method() in drivers/platform/x86/intel-smartconnect.c Signed-off-by: Zhang Rui <[email protected]> CC: Matthew Garrett <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
2013-09-05x86: smartconnect: use module_acpi_driver to simplify the codeWei Yongjun1-12/+1
module_acpi_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Matthew Garrett <[email protected]>
2013-07-10Add trivial driver to disable Intel Smart ConnectMatthew Garrett1-0/+90
Intel Smart Connect is an Intel-specific ACPI interface for configuring devices to wake up at regular intervals so they can pull down mail or other internet updates, and then go to sleep again. If a user enables this in Windows and then reboots into Linux, the device may wake up if it's put to sleep. Since there's no Linux userland support for any of this, the machine will then remain awake until something else puts it back to sleep. I haven't figured out all that much about how this works (there's a bunch of different ACPI calls available on the device), but this seems to be enough to turn it off. We can add more features to this driver if anyone ever cares about figuring out what the rest of the calls do or writing some Linux userspace to implement the rest of it. Signed-off-by: Matthew Garrett <[email protected]> Signed-off-by: Matthew Garrett <[email protected]>