Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/spi Try to fix the build.



details:   https://anonhg.NetBSD.org/src/rev/d18fc098a1dd
branches:  trunk
changeset: 359730:d18fc098a1dd
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Jan 19 09:30:11 2022 +0000

description:
Try to fix the build.

diffstat:

 sys/dev/spi/spi.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r e8de49094dc4 -r d18fc098a1dd sys/dev/spi/spi.c
--- a/sys/dev/spi/spi.c Wed Jan 19 05:21:44 2022 +0000
+++ b/sys/dev/spi/spi.c Wed Jan 19 09:30:11 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spi.c,v 1.20 2022/01/19 05:21:44 thorpej Exp $ */
+/* $NetBSD: spi.c,v 1.21 2022/01/19 09:30:11 martin Exp $ */
 
 /*-
  * Copyright (c) 2006 Urbana-Champaign Independent Media Center.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spi.c,v 1.20 2022/01/19 05:21:44 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spi.c,v 1.21 2022/01/19 09:30:11 martin Exp $");
 
 #include "locators.h"
 
@@ -341,6 +341,7 @@
 spi_ioctl(dev_t dev, u_long cmd, void *data, int flag, lwp_t *l)
 {
        struct spi_softc *sc = device_lookup_private(&spi_cd, minor(dev));
+       device_t self = device_lookup(&spi_cd, minor(dev));
        struct spi_handle *sh;
        spi_ioctl_configure_t *sic;
        spi_ioctl_transfer_t *sit;
@@ -360,7 +361,7 @@
                        break;
                }
                sh = &sc->sc_slaves[sic->sic_addr];
-               error = spi_configure(sh, sic->sic_mode, sic->sic_speed);
+               error = spi_configure(self, sh, sic->sic_mode, sic->sic_speed);
                break;
        case SPI_IOCTL_TRANSFER:
                sit = (spi_ioctl_transfer_t *)data;



Home | Main Index | Thread Index | Old Index