Module Name:    src
Committed By:   thorpej
Date:           Mon Dec 23 14:43:03 UTC 2019

Modified Files:
        src/sys/dev/i2c: lm87.c

Log Message:
No need to use I2C_F_POLL here.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/i2c/lm87.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/lm87.c
diff -u src/sys/dev/i2c/lm87.c:1.10 src/sys/dev/i2c/lm87.c:1.11
--- src/sys/dev/i2c/lm87.c:1.10	Tue Jun 26 06:03:57 2018
+++ src/sys/dev/i2c/lm87.c	Mon Dec 23 14:43:03 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: lm87.c,v 1.10 2018/06/26 06:03:57 thorpej Exp $	*/
+/*	$NetBSD: lm87.c,v 1.11 2019/12/23 14:43:03 thorpej Exp $	*/
 /*	$OpenBSD: lm87.c,v 1.20 2008/11/10 05:19:48 cnst Exp $	*/
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lm87.c,v 1.10 2018/06/26 06:03:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lm87.c,v 1.11 2019/12/23 14:43:03 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -164,7 +164,7 @@ lmenv_match(device_t parent, cfdata_t ma
 	cmd = LM87_COMPANY_ID;
 	iic_acquire_bus(ia->ia_tag, 0);
 	error = iic_exec(ia->ia_tag, I2C_OP_READ_WITH_STOP, ia->ia_addr,
-	    &cmd, 1, &val, 1, I2C_F_POLL);
+	    &cmd, 1, &val, 1, 0);
 	iic_release_bus(ia->ia_tag, 0);
 
 	if (error)

Reply via email to