FreeBSD/sys/dev/gpio/gpiokeys.c
/* disallow the access to the device */
disallow the access to the device
disallow the access to the device
static int
gpiokeys_disable(keyboard_t *kbd)
{
	struct gpiokeys_softc *sc;
	sc = kbd->kb_data;
	GPIOKEYS_LOCK(sc);
	KBD_DEACTIVATE(kbd);
	GPIOKEYS_UNLOCK(sc);
	return (0);
}
static int gpiokeys_disable ( keyboard_t * kbd ) { struct gpiokeys_softc * sc ; sc = kbd -> kb_data ; GPIOKEYS_LOCK ( sc ) ; KBD_DEACTIVATE ( kbd ) ; GPIOKEYS_UNLOCK ( sc ) ; return ( 0 ) ; }
disallow the access to the device
disallow the access to the device