Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pckbport Use PMS_SEND_DEV_STATUS for E9 instead of P...
details: https://anonhg.NetBSD.org/src/rev/e8ca2c5db9b4
branches: trunk
changeset: 320017:e8ca2c5db9b4
user: uwe <uwe%NetBSD.org@localhost>
date: Tue Jun 19 21:21:04 2018 +0000
description:
Use PMS_SEND_DEV_STATUS for E9 instead of PMS_GET_SCALE (also defined
as E9). This is more readable and is congruent with other drivers.
Same object code is generated.
diffstat:
sys/dev/pckbport/alps.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r e355720ce33b -r e8ca2c5db9b4 sys/dev/pckbport/alps.c
--- a/sys/dev/pckbport/alps.c Tue Jun 19 19:57:45 2018 +0000
+++ b/sys/dev/pckbport/alps.c Tue Jun 19 21:21:04 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: alps.c,v 1.5 2018/06/03 15:02:56 jakllsch Exp $ */
+/* $NetBSD: alps.c,v 1.6 2018/06/19 21:21:04 uwe Exp $ */
/*-
* Copyright (c) 2017 Ryo ONODERA <ryo%tetera.org@localhost>
@@ -30,7 +30,7 @@
#include "opt_pms.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: alps.c,v 1.5 2018/06/03 15:02:56 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: alps.c,v 1.6 2018/06/19 21:21:04 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -159,7 +159,7 @@
goto err;
e6sig[0] = e6sig[1] = e6sig[2] = 0;
/* Get E6 signature */
- cmd[0] = PMS_GET_SCALE; /* E9 */
+ cmd[0] = PMS_SEND_DEV_STATUS; /* E9 */
if ((res = pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot,
cmd, 1, 3, e6sig, 0)) != 0)
goto err;
@@ -207,7 +207,7 @@
cmd, 1, 0, NULL, 0)) != 0)
goto err;
e7sig[0] = e7sig[1] = e7sig[2] = 0;
- cmd[0] = PMS_GET_SCALE; /* E9 */
+ cmd[0] = PMS_SEND_DEV_STATUS; /* E9 */
if ((res = pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot,
cmd, 1, 3, e7sig, 0)) != 0)
goto err;
@@ -249,7 +249,7 @@
cmd, 1, 0, NULL, 0)) != 0)
goto err;
ecsig[0] = ecsig[1] = ecsig[2] = 0;
- cmd[0] = PMS_GET_SCALE; /* E9 */
+ cmd[0] = PMS_SEND_DEV_STATUS; /* E9 */
if ((res = pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot,
cmd, 1, 3, ecsig, 0)) != 0)
goto err;
@@ -288,7 +288,7 @@
cmd, 1, 0, NULL, 0)) != 0)
goto err;
resp[0] = resp[1] = resp[2] = 0;
- cmd[0] = PMS_GET_SCALE; /* E9 */
+ cmd[0] = PMS_SEND_DEV_STATUS; /* E9 */
if ((res = pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot,
cmd, 1, 3, resp, 0)) != 0)
goto err;
Home |
Main Index |
Thread Index |
Old Index