diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-20 04:28:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-20 04:28:20 +0000 |
commit | d726ffd0f7110f9f72639f30f06d7b4b91c6a6cf (patch) | |
tree | 7e26a3b39c44f96fbad764ae8ae6acb939b1a5f6 /sys/arch/zaurus/dev/zaurus_kbd.c | |
parent | da63cea4fd7f6f10664bc712ba9963d230f3fa42 (diff) |
at power events, call zkbd_hinge() to update the lcd state as well; ok drahn
bug reported in pr 4944
Diffstat (limited to 'sys/arch/zaurus/dev/zaurus_kbd.c')
-rw-r--r-- | sys/arch/zaurus/dev/zaurus_kbd.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_kbd.c b/sys/arch/zaurus/dev/zaurus_kbd.c index a264c633693..501dc7878f1 100644 --- a/sys/arch/zaurus/dev/zaurus_kbd.c +++ b/sys/arch/zaurus/dev/zaurus_kbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zaurus_kbd.c,v 1.25 2005/11/11 18:17:40 deraadt Exp $ */ +/* $OpenBSD: zaurus_kbd.c,v 1.26 2005/12/20 04:28:19 deraadt Exp $ */ /* * Copyright (c) 2005 Dale Rahn <drahn@openbsd.org> * @@ -585,10 +585,5 @@ zkbd_cnpollc(void *v, int on) void zkbd_power(int why, void *arg) { - struct zkbd_softc *sc = arg; - int a = pxa2x0_gpio_get_bit(sc->sc_swa_pin) ? 1 : 0; - int b = pxa2x0_gpio_get_bit(sc->sc_swb_pin) ? 2 : 0; - - /* probably should check why */ - sc->sc_hinge = a | b; + zkbd_hinge(arg); } |