aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/iicbus
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2021-11-26 06:45:12 +0000
committerAndriy Gapon <avg@FreeBSD.org>2021-11-26 14:04:14 +0000
commitf00bc54f62c455c7ed44afee736c3c64873a305a (patch)
tree953b216a639acdc80117c96f46670bd09aeafb06 /sys/dev/iicbus
parentde86f339cdda0a10130033ff1771fb13cfacd9d0 (diff)
downloadsrc-f00bc54f62c455c7ed44afee736c3c64873a305a.tar.gz
src-f00bc54f62c455c7ed44afee736c3c64873a305a.zip
twsi: remove write-only softc field
MFC after: 1 week
Diffstat (limited to 'sys/dev/iicbus')
-rw-r--r--sys/dev/iicbus/twsi/a10_twsi.c2
-rw-r--r--sys/dev/iicbus/twsi/twsi.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/iicbus/twsi/a10_twsi.c b/sys/dev/iicbus/twsi/a10_twsi.c
index 17f551f27234..7554db0fbc94 100644
--- a/sys/dev/iicbus/twsi/a10_twsi.c
+++ b/sys/dev/iicbus/twsi/a10_twsi.c
@@ -121,8 +121,6 @@ a10_twsi_attach(device_t dev)
sc->reg_baud_rate = TWI_CCR;
sc->reg_soft_reset = TWI_SRST;
- sc->need_ack = true;
-
if (ofw_bus_is_compatible(dev, "allwinner,sun6i-a31-i2c") ||
ofw_bus_is_compatible(dev, "allwinner,sun6i-a83t-i2c"))
sc->iflag_w1c = true;
diff --git a/sys/dev/iicbus/twsi/twsi.h b/sys/dev/iicbus/twsi/twsi.h
index 631486fb3f0c..b10ce45be6f4 100644
--- a/sys/dev/iicbus/twsi/twsi.h
+++ b/sys/dev/iicbus/twsi/twsi.h
@@ -65,7 +65,6 @@ struct twsi_softc {
int transfer;
int error;
uint32_t control_val;
- bool need_ack;
bool iflag_w1c;
bus_size_t reg_data;