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/4781211f32aa
branches: trunk
changeset: 967835:4781211f32aa
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Dec 23 18:20:02 2019 +0000
description:
No need to use I2C_F_POLL here.
diffstat:
sys/arch/arm/sunxi/sunxi_hdmi.c | 10 +++++-----
sys/dev/i2c/i2c.c | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (63 lines):
diff -r 1806a515f980 -r 4781211f32aa sys/arch/arm/sunxi/sunxi_hdmi.c
--- a/sys/arch/arm/sunxi/sunxi_hdmi.c Mon Dec 23 18:09:05 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_hdmi.c Mon Dec 23 18:20:02 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_hdmi.c,v 1.9 2019/12/23 00:24:02 thorpej Exp $ */
+/* $NetBSD: sunxi_hdmi.c,v 1.10 2019/12/23 18:20:02 thorpej Exp $ */
/*-
* Copyright (c) 2014 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "opt_ddb.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_hdmi.c,v 1.9 2019/12/23 00:24:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_hdmi.c,v 1.10 2019/12/23 18:20:02 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -637,14 +637,14 @@
uint8_t wbuf[2];
int error;
- if ((error = iic_acquire_bus(tag, I2C_F_POLL)) != 0)
+ if ((error = iic_acquire_bus(tag, 0)) != 0)
return error;
wbuf[0] = block; /* start address */
error = iic_exec(tag, I2C_OP_READ_WITH_STOP, DDC_ADDR, wbuf, 1,
- data, EDID_BLOCK_SIZE, I2C_F_POLL);
- iic_release_bus(tag, I2C_F_POLL);
+ data, EDID_BLOCK_SIZE, 0);
+ iic_release_bus(tag, 0);
return error;
}
diff -r 1806a515f980 -r 4781211f32aa sys/dev/i2c/i2c.c
--- a/sys/dev/i2c/i2c.c Mon Dec 23 18:09:05 2019 +0000
+++ b/sys/dev/i2c/i2c.c Mon Dec 23 18:20:02 2019 +0000
@@ -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 @@
* 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] =
Home |
Main Index |
Thread Index |
Old Index