summaryrefslogtreecommitdiff
path: root/common/onewire.c
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-07-28 23:19:15 -0700
committerCommit Bot <commit-bot@chromium.org>2021-08-02 22:39:51 +0000
commit0a62b1991b0e4da49f723e81dabb02c83f491373 (patch)
treef1f18f24ec24f8cf86864e906ae1c27b1ef78434 /common/onewire.c
parenta107fb42db202abd251d9bb8516def7ddae0b4e5 (diff)
downloadchrome-ec-0a62b1991b0e4da49f723e81dabb02c83f491373.tar.gz
COIL: onewire: Update terminology
BRANCH=none BUG=b:163885307 TEST=compare_build.sh matches Change-Id: Ie9547c450c63390f0b1e80bcb2fa75e5e748e215 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3060264 Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'common/onewire.c')
-rw-r--r--common/onewire.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/common/onewire.c b/common/onewire.c
index 43080d096e..cdb5837255 100644
--- a/common/onewire.c
+++ b/common/onewire.c
@@ -54,7 +54,10 @@ static int readbit(void)
/* Output low */
output0(T_RL);
- /* Delay to let slave release the line if it wants to send a 1-bit */
+ /*
+ * Delay to let peripheral release the line if it wants to send
+ * a 1-bit
+ */
udelay(T_MSR - T_RL);
/* Read bit */
@@ -100,14 +103,14 @@ static void writebit(int bit)
int onewire_reset(void)
{
- /* Start transaction with master reset pulse */
+ /* Start transaction with controller reset pulse */
output0(T_RSTL);
/* Wait for presence detect sample time.
*
* (Alternately, we could poll waiting for a 1-bit indicating our pulse
* has let go, then poll up to max time waiting for a 0-bit indicating
- * the slave has responded.)
+ * the peripheral has responded.)
*/
udelay(T_MSP);