From 0a62b1991b0e4da49f723e81dabb02c83f491373 Mon Sep 17 00:00:00 2001 From: Caveh Jalali Date: Wed, 28 Jul 2021 23:19:15 -0700 Subject: COIL: onewire: Update terminology BRANCH=none BUG=b:163885307 TEST=compare_build.sh matches Change-Id: Ie9547c450c63390f0b1e80bcb2fa75e5e748e215 Signed-off-by: Caveh Jalali Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3060264 Reviewed-by: Boris Mittelberg Reviewed-by: Daisuke Nojiri --- common/onewire.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'common') 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); -- cgit v1.2.1