diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-02-09 20:36:15 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-02-09 20:36:15 +0000 |
commit | 4b82b445f0ec9d6ae4671e8b01001d0be5c15d84 (patch) | |
tree | b9481c71a0dd29c77e8d742feb3d37b3efe89c42 | |
parent | 0274e93117b24cd9125e51fb30e7475ac08e2839 (diff) |
Fix indent, add RCS Id
-rw-r--r-- | sys/arch/arm/xscale/pxa27x_kpc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/arm/xscale/pxa27x_kpc.c b/sys/arch/arm/xscale/pxa27x_kpc.c index 0d746c25385..f89abed43f2 100644 --- a/sys/arch/arm/xscale/pxa27x_kpc.c +++ b/sys/arch/arm/xscale/pxa27x_kpc.c @@ -1,3 +1,4 @@ +/* $OpenBSD: pxa27x_kpc.c,v 1.2 2013/02/09 20:36:14 miod Exp $ */ /* * Copyright (c) 2009 Marek Vasut <marex@openbsd.org> * @@ -66,6 +67,7 @@ int pxa27x_kpc_match(void *aux) { struct pxaip_attach_args *pxa = aux; + if (pxa->pxa_addr != PXA2X0_KPC_BASE) return 0; /* Wrong device */ @@ -130,6 +132,7 @@ pxa27x_kpc_submit(struct pxa27x_kpc_softc *sc, int event) { #ifdef WSDISPLAY_COMPAT_RAWKBD u_char key; + if (sc->sc_rawkbd) { key = sc->sc_key; if (event == WSCONS_EVENT_KEY_DOWN) @@ -137,7 +140,7 @@ pxa27x_kpc_submit(struct pxa27x_kpc_softc *sc, int event) wskbd_rawinput(sc->sc_wskbddev, &key, 1); } else #endif - wskbd_input(sc->sc_wskbddev, event, sc->sc_key); + wskbd_input(sc->sc_wskbddev, event, sc->sc_key); } int |