Module Name: src
Committed By: thorpej
Date: Mon Dec 23 18:27:11 UTC 2019
Modified Files:
src/sys/dev/i2c: i2c.c
Log Message:
No need to use I2C_F_POLL here.
To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/dev/i2c/i2c.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/i2c/i2c.c
diff -u src/sys/dev/i2c/i2c.c:1.71 src/sys/dev/i2c/i2c.c:1.72
--- src/sys/dev/i2c/i2c.c:1.71 Sun Dec 22 23:23:32 2019
+++ src/sys/dev/i2c/i2c.c Mon Dec 23 18:27:11 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: i2c.c,v 1.71 2019/12/22 23:23:32 thorpej Exp $ */
+/* $NetBSD: i2c.c,v 1.72 2019/12/23 18:27:11 thorpej Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.71 2019/12/22 23:23:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.72 2019/12/23 18:27:11 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -353,7 +353,7 @@ iic_search(device_t parent, cfdata_t cf,
* to see if it looks like something is really there.
*/
if (match_result == I2C_MATCH_ADDRESS_ONLY &&
- (error = (*probe_func)(sc, &ia, I2C_F_POLL)) != 0)
+ (error = (*probe_func)(sc, &ia, 0)) != 0)
continue;
sc->sc_devices[ia.ia_addr] =