Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2c Fix compilation error pointed out by nishimura@.



details:   https://anonhg.NetBSD.org/src/rev/e4077cf95de0
branches:  trunk
changeset: 323502:e4077cf95de0
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Jun 17 14:50:54 2018 +0000

description:
Fix compilation error pointed out by nishimura@.

diffstat:

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

diffs (27 lines):

diff -r ecc75ae190f0 -r e4077cf95de0 sys/dev/i2c/max77620.c
--- a/sys/dev/i2c/max77620.c    Sun Jun 17 14:48:15 2018 +0000
+++ b/sys/dev/i2c/max77620.c    Sun Jun 17 14:50:54 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: max77620.c,v 1.3 2018/06/16 21:22:13 thorpej Exp $ */
+/* $NetBSD: max77620.c,v 1.4 2018/06/17 14:50:54 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: max77620.c,v 1.3 2018/06/16 21:22:13 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: max77620.c,v 1.4 2018/06/17 14:50:54 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -260,7 +260,7 @@
        struct i2c_attach_args *ia = aux;
        int match_result;
 
-       if (iic_use_direct_match(ia, match, max77620_compats, match_result))
+       if (iic_use_direct_match(ia, match, max77620_compats, &match_result))
                return match_result;
 
        return 0;



Home | Main Index | Thread Index | Old Index