Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpi_support/acpi_rapidstart.c
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | struct acpi_rapidstart_softc { | ||||
struct sysctl_ctx_list *sysctl_ctx; | struct sysctl_ctx_list *sysctl_ctx; | ||||
struct sysctl_oid *sysctl_tree; | struct sysctl_oid *sysctl_tree; | ||||
}; | }; | ||||
static char *rapidstart_ids[] = {"INT3392", NULL}; | static char *rapidstart_ids[] = {"INT3392", NULL}; | ||||
static int | static int | ||||
acpi_rapidstart_probe(device_t dev) | acpi_rapidstart_probe(device_t dev) | ||||
{ | { | ||||
int rv; | |||||
if (acpi_disabled("rapidstart") || | if (acpi_disabled("rapidstart") || | ||||
ACPI_ID_PROBE(device_get_parent(dev), dev, rapidstart_ids) == NULL || | |||||
device_get_unit(dev) != 0) | device_get_unit(dev) != 0) | ||||
jhb: Please keep the blank line between variable declarations and the first line of code (various… | |||||
return (ENXIO); | return (ENXIO); | ||||
rv = ACPI_ID_PROBE(device_get_parent(dev), dev, rapidstart_ids, NULL); | |||||
if (rv <= 0) | |||||
Done Inline ActionsSpace after 'if' here as well. jhb: Space after 'if' here as well. | |||||
device_set_desc(dev, "Intel Rapid Start ACPI device"); | device_set_desc(dev, "Intel Rapid Start ACPI device"); | ||||
return (0); | return (rv); | ||||
} | } | ||||
static int | static int | ||||
acpi_rapidstart_attach(device_t dev) | acpi_rapidstart_attach(device_t dev) | ||||
{ | { | ||||
struct acpi_rapidstart_softc *sc; | struct acpi_rapidstart_softc *sc; | ||||
int i; | int i; | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |
Please keep the blank line between variable declarations and the first line of code (various instances of this in the diff).