summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-02-09 20:36:15 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-02-09 20:36:15 +0000
commit4b82b445f0ec9d6ae4671e8b01001d0be5c15d84 (patch)
treeb9481c71a0dd29c77e8d742feb3d37b3efe89c42 /sys
parent0274e93117b24cd9125e51fb30e7475ac08e2839 (diff)
Fix indent, add RCS Id
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arm/xscale/pxa27x_kpc.c5
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