From nobody Wed Dec 15 11:16:38 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EB27518E98EE; Wed, 15 Dec 2021 11:16:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JDXkZ517bz4qt0; Wed, 15 Dec 2021 11:16:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8830F1AEBF; Wed, 15 Dec 2021 11:16:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BFBGcGC081544; Wed, 15 Dec 2021 11:16:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BFBGcwM081543; Wed, 15 Dec 2021 11:16:38 GMT (envelope-from git) Date: Wed, 15 Dec 2021 11:16:38 GMT Message-Id: <202112151116.1BFBGcwM081543@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andriy Gapon Subject: git: 5f863d7e1319 - main - rk_i2c: remove write-only softc field List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: avg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5f863d7e1319afe32d18e505c26acaacfcae0db7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639566998; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TMPtzrZ7lYiWqiFhaMMJNM3iVYFFZWfNcIhreBmcazE=; b=u/or75IUXnD0Nkmo2QUsYaqAagyhFX0FSfs6S6aw5WNa2x0U/MJdpmDK0h0JX8yVkeipRM fTVZrbXhU6QVGHaLkMDC1EBVsTRsMod0sf1akpmeHVuIwYk5hMva/HnvV/1zfMPqkSRHpb McVRujZA57dHHHAvWt5JUN/l2Yhp5poywvyCUEYAtUJ22w1skaLL+HE2/7ICkQtlHtvfuL 67lJHrvmZUASBziMhWEDQXf6SLwHlYGEYcG7CWuKlZAJtdEJQj4IXD2G4O/cOMPPkgiqxT mG4VfW5qso2QNdvnI8s5fJNQpiM3fJHKLFF2RrdSawrOSkdNefohJ/gW/XlpIg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639566998; a=rsa-sha256; cv=none; b=wajHjkO/1rUtoSa0borjZ2xT+J2fwgLpICW1uJox3XSHGziWRBUByPAsI0mz7Q1vRuBnu+ zm6uM4Joqz2BRpmvt1PvXbs8iaL75vUfjT2nudXXfiGazYiTnXP3n/F6lCCsnsQ7VbDMI+ Yao9uVF4rOT8Wfe1aXLD35X2vAaYWRs8CA6JhAJDC9q/2jpf5Q0/qluTW56aReKd+J04eq MW8haOJYd5wKWEzNZXpF2qeyPZNuUogFpdXued5MOfQVqtlltW5JpzQJg3mlI6LA53jEjj Mhk6yLjY4JYxwvA5HREZzPIIhST5VuwsJgRL9CIni2XwehNNZaBd9i/Gyeflpw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=5f863d7e1319afe32d18e505c26acaacfcae0db7 commit 5f863d7e1319afe32d18e505c26acaacfcae0db7 Author: Andriy Gapon AuthorDate: 2021-12-15 08:37:04 +0000 Commit: Andriy Gapon CommitDate: 2021-12-15 11:14:29 +0000 rk_i2c: remove write-only softc field MFC after: 1 week --- sys/arm64/rockchip/rk_i2c.c | 3 --- 1 file changed, 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;