Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pckbport Don't pass response buffer to the reset com...
details: https://anonhg.NetBSD.org/src/rev/c9b99865ed98
branches: trunk
changeset: 362657:c9b99865ed98
user: uwe <uwe%NetBSD.org@localhost>
date: Tue Jun 19 23:03:28 2018 +0000
description:
Don't pass response buffer to the reset command since we are not
interested in it (pckbport_poll_cmd() is smart enough).
diffstat:
sys/dev/pckbport/alps.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 192f496f5278 -r c9b99865ed98 sys/dev/pckbport/alps.c
--- a/sys/dev/pckbport/alps.c Tue Jun 19 22:53:17 2018 +0000
+++ b/sys/dev/pckbport/alps.c Tue Jun 19 23:03:28 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: alps.c,v 1.8 2018/06/19 22:53:17 uwe Exp $ */
+/* $NetBSD: alps.c,v 1.9 2018/06/19 23:03:28 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.8 2018/06/19 22:53:17 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: alps.c,v 1.9 2018/06/19 23:03:28 uwe Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -690,7 +690,7 @@
uint8_t e7sig[3];
uint8_t ecsig[3];
int res;
- u_char cmd[1], resp[3];
+ u_char cmd[1];
sc->last_x1 = 0;
sc->last_y1 = 0;
@@ -755,8 +755,8 @@
err:
cmd[0] = PMS_RESET;
- (void)pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot, cmd,
- 1, 2, resp, 1);
+ (void)pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot,
+ cmd, 1, 2, NULL, 1);
if (res != ENODEV)
aprint_verbose_dev(psc->sc_dev, "Failed to initialize an ALPS device.\n");
return res;
Home |
Main Index |
Thread Index |
Old Index