Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpi_support/acpi_wmi.c
Show First 20 Lines • Show All 202 Lines • ▼ Show 20 Lines | |||||
static char *wmi_ids[] = {"PNP0C14", NULL}; | static char *wmi_ids[] = {"PNP0C14", NULL}; | ||||
/* | /* | ||||
* Probe for the PNP0C14 ACPI node | * Probe for the PNP0C14 ACPI node | ||||
*/ | */ | ||||
static int | static int | ||||
acpi_wmi_probe(device_t dev) | acpi_wmi_probe(device_t dev) | ||||
{ | { | ||||
if (acpi_disabled("wmi") || | int rv; | ||||
ACPI_ID_PROBE(device_get_parent(dev), dev, wmi_ids) == NULL) | |||||
if (acpi_disabled("wmi")) | |||||
return (ENXIO); | return (ENXIO); | ||||
rv = ACPI_ID_PROBE(device_get_parent(dev), dev, wmi_ids, NULL); | |||||
if (rv <= 0) | |||||
jhb: You could drop this blank line perhaps. | |||||
device_set_desc(dev, "ACPI-WMI mapping"); | device_set_desc(dev, "ACPI-WMI mapping"); | ||||
return (0); | return (rv); | ||||
} | } | ||||
/* | /* | ||||
* Attach the device by: | * Attach the device by: | ||||
* - Looking for the first ACPI EC device | * - Looking for the first ACPI EC device | ||||
* - Install the notify handler | * - Install the notify handler | ||||
* - Install the EC address space handler | * - Install the EC address space handler | ||||
* - Look for the _WDG node and read GUID information blocks | * - Look for the _WDG node and read GUID information blocks | ||||
▲ Show 20 Lines • Show All 796 Lines • Show Last 20 Lines |
You could drop this blank line perhaps.