static void gpiobacklight_update_brightness(struct gpiobacklight_softc *sc) { if (sc->sc_pin) gpio_pin_set_active(sc->sc_pin, sc->sc_brightness); }
static void gpioled_control(void *priv, int onoff) { struct gpioled *led; led = (struct gpioled *)priv; if (led->pin) gpio_pin_set_active(led->pin, onoff); }