Module Name: src
Committed By: thorpej
Date: Mon Dec 23 15:07:42 UTC 2019
Modified Files:
src/sys/dev/i2c: titemp.c
Log Message:
No need to use I2C_F_POLL here.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/i2c/titemp.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/titemp.c
diff -u src/sys/dev/i2c/titemp.c:1.7 src/sys/dev/i2c/titemp.c:1.8
--- src/sys/dev/i2c/titemp.c:1.7 Tue Jun 26 06:03:57 2018
+++ src/sys/dev/i2c/titemp.c Mon Dec 23 15:07:42 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: titemp.c,v 1.7 2018/06/26 06:03:57 thorpej Exp $ */
+/* $NetBSD: titemp.c,v 1.8 2019/12/23 15:07:42 thorpej Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: titemp.c,v 1.7 2018/06/26 06:03:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: titemp.c,v 1.8 2019/12/23 15:07:42 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -102,11 +102,11 @@ titemp_match(device_t parent, cfdata_t m
if (ia->ia_addr != 0x4c)
return 0;
- if (iic_acquire_bus(ia->ia_tag, I2C_F_POLL) != 0)
+ if (iic_acquire_bus(ia->ia_tag, 0) != 0)
return 0;
error = iic_smbus_read_byte(ia->ia_tag, ia->ia_addr,
- TITEMP_MFID_REG, &mfid, I2C_F_POLL);
- iic_release_bus(ia->ia_tag, I2C_F_POLL);
+ TITEMP_MFID_REG, &mfid, 0);
+ iic_release_bus(ia->ia_tag, 0);
if (error || mfid != TITEMP_MFID_TMP451)
return 0;