Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/spi Use spi_compatible_lookup().



details:   https://anonhg.NetBSD.org/src/rev/481c6e65047c
branches:  trunk
changeset: 359735:481c6e65047c
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Jan 19 13:33:49 2022 +0000

description:
Use spi_compatible_lookup().

diffstat:

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

diffs (27 lines):

diff -r 0764b144ce1d -r 481c6e65047c sys/dev/spi/ssdfb_spi.c
--- a/sys/dev/spi/ssdfb_spi.c   Wed Jan 19 13:33:11 2022 +0000
+++ b/sys/dev/spi/ssdfb_spi.c   Wed Jan 19 13:33:49 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ssdfb_spi.c,v 1.13 2022/01/19 05:21:44 thorpej Exp $ */
+/* $NetBSD: ssdfb_spi.c,v 1.14 2022/01/19 13:33:49 thorpej Exp $ */
 
 /*
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ssdfb_spi.c,v 1.13 2022/01/19 05:21:44 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ssdfb_spi.c,v 1.14 2022/01/19 13:33:49 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -120,7 +120,7 @@
        sc->sc.sc_cookie = (void *)sc;
        if ((flags & SSDFB_ATTACH_FLAG_PRODUCT_MASK) == SSDFB_PRODUCT_UNKNOWN) {
                const struct device_compatible_entry *dce =
-                       device_compatible_lookup(sa->sa_compat, sa->sa_ncompat, compat_data);
+                       spi_compatible_lookup(sa, compat_data);
                if (dce)
                        flags |= (int)dce->value;
                else



Home | Main Index | Thread Index | Old Index