aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2021-12-15 08:37:04 +0000
committerAndriy Gapon <avg@FreeBSD.org>2021-12-15 11:14:29 +0000
commit5f863d7e1319afe32d18e505c26acaacfcae0db7 (patch)
treea9e12e5c724e22f7a9f62a88aec64db995646528
parent8296d2f9a3bf8e68de2f8e3f98f911b9b9542dad (diff)
downloadsrc-5f863d7e1319afe32d18e505c26acaacfcae0db7.tar.gz
src-5f863d7e1319afe32d18e505c26acaacfcae0db7.zip
rk_i2c: remove write-only softc field
MFC after: 1 week
-rw-r--r--sys/arm64/rockchip/rk_i2c.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/arm64/rockchip/rk_i2c.c b/sys/arm64/rockchip/rk_i2c.c
index c54f523088fe..11aaf51f7e62 100644
--- a/sys/arm64/rockchip/rk_i2c.c
+++ b/sys/arm64/rockchip/rk_i2c.c
@@ -130,7 +130,6 @@ struct rk_i2c_softc {
uint32_t ipd;
struct iic_msg *msg;
size_t cnt;
- int msg_len;
bool transfer_done;
bool nak_recv;
bool tx_slave_addr;
@@ -417,13 +416,11 @@ rk_i2c_start_xfer(struct rk_i2c_softc *sc, struct iic_msg *msg, boolean_t last)
sc->cnt = 0;
sc->state = STATE_IDLE;
sc->msg = msg;
- sc->msg_len = sc->msg->len;
reg = RK_I2C_READ(sc, RK_I2C_CON) & ~RK_I2C_CON_CTRL_MASK;
if (!(sc->msg->flags & IIC_M_NOSTART)) {
/* Stadard message */
if (sc->mode == RK_I2C_CON_MODE_TX) {
- sc->msg_len++; /* Take slave address in account. */
sc->tx_slave_addr = true;
}
sc->state = STATE_START;