Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/gpio/bytgpio.c
Show First 20 Lines • Show All 535 Lines • ▼ Show 20 Lines | bytgpio_pin_toggle(device_t dev, uint32_t pin) | ||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
bytgpio_probe(device_t dev) | bytgpio_probe(device_t dev) | ||||
{ | { | ||||
static char *gpio_ids[] = { "INT33FC", NULL }; | static char *gpio_ids[] = { "INT33FC", NULL }; | ||||
int rv; | |||||
if (acpi_disabled("gpio") || | if (acpi_disabled("gpio")) | ||||
ACPI_ID_PROBE(device_get_parent(dev), dev, gpio_ids) == NULL) | |||||
return (ENXIO); | return (ENXIO); | ||||
rv = ACPI_ID_PROBE(device_get_parent(dev), dev, gpio_ids, NULL); | |||||
if (rv <= 0) | |||||
jhb: Space after 'if' | |||||
device_set_desc(dev, "Intel Baytrail GPIO Controller"); | device_set_desc(dev, "Intel Baytrail GPIO Controller"); | ||||
return (0); | return (rv); | ||||
} | } | ||||
static int | static int | ||||
bytgpio_attach(device_t dev) | bytgpio_attach(device_t dev) | ||||
{ | { | ||||
struct bytgpio_softc *sc; | struct bytgpio_softc *sc; | ||||
ACPI_STATUS status; | ACPI_STATUS status; | ||||
int uid; | int uid; | ||||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |
Space after 'if'