Module Name: src
Committed By: uwe
Date: Tue Jun 19 21:21:04 UTC 2018
Modified Files:
src/sys/dev/pckbport: alps.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/pckbport/alps.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pckbport/alps.c
diff -u src/sys/dev/pckbport/alps.c:1.5 src/sys/dev/pckbport/alps.c:1.6
--- src/sys/dev/pckbport/alps.c:1.5 Sun Jun 3 15:02:56 2018
+++ src/sys/dev/pckbport/alps.c Tue Jun 19 21:21:04 2018
@@ -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 <[email protected]>
@@ -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 @@ pms_alps_e6sig(struct pms_softc *psc, ui
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 @@ pms_alps_e7sig(struct pms_softc *psc, ui
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 @@ pms_alps_ecsig(struct pms_softc *psc, ui
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 @@ pms_alps_start_command_mode(struct pms_s
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;