FreeBSD/sys/dev/gpio/gpiokeys.c
/* clear the internal state of the keyboard */
clear the internal state of the keyboard
clear the internal state of the keyboard
static void
gpiokeys_clear_state(keyboard_t *kbd)
{
	struct gpiokeys_softc *sc = kbd->kb_data;
	sc->sc_flags &= ~(GPIOKEYS_GLOBAL_FLAG_POLLING);
	sc->sc_state &= LOCK_MASK;	
	sc->sc_accents = 0;
}
static void gpiokeys_clear_state ( keyboard_t * kbd ) { struct gpiokeys_softc * sc = kbd -> kb_data ; sc -> sc_flags &= ~ ( GPIOKEYS_GLOBAL_FLAG_POLLING ) ; sc -> sc_state &= LOCK_MASK ; sc -> sc_accents = 0 ; }
clear the internal state of the keyboard
clear the internal state of the keyboard
/* preserve locking key state */