Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c No need to use I2C_F_POLL here.
details: https://anonhg.NetBSD.org/src/rev/f51accec79f4
branches: trunk
changeset: 1005854:f51accec79f4
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Dec 23 15:07:42 2019 +0000
description:
No need to use I2C_F_POLL here.
diffstat:
sys/dev/i2c/titemp.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r 8bf5755151a1 -r f51accec79f4 sys/dev/i2c/titemp.c
--- a/sys/dev/i2c/titemp.c Mon Dec 23 15:05:32 2019 +0000
+++ b/sys/dev/i2c/titemp.c Mon Dec 23 15:07:42 2019 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index