summaryrefslogtreecommitdiff
path: root/chip/g/gpio.c
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-01-11 11:27:12 -0800
committerCommit Bot <commit-bot@chromium.org>2021-01-11 21:55:20 +0000
commitec643f0d99397eafa09ab39b2d7dd6b968bd70d8 (patch)
tree76109b01c5760134d13384678b5ce126e29fba8c /chip/g/gpio.c
parent17baff2bd51e5b14fa9992f4cddca96742a7dea8 (diff)
downloadchrome-ec-ec643f0d99397eafa09ab39b2d7dd6b968bd70d8.tar.gz
coil: cleanup commentsstabilize-rust-13720.B-cr50_stab
BUG=b:175244613 TEST=make buildall -j Change-Id: Icbd143b072fdd5df3b67d7e5a09ee6c01a77f6b9 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2622889 Reviewed-by: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'chip/g/gpio.c')
-rw-r--r--chip/g/gpio.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/chip/g/gpio.c b/chip/g/gpio.c
index f55e0fad35..a113419874 100644
--- a/chip/g/gpio.c
+++ b/chip/g/gpio.c
@@ -306,15 +306,19 @@ static void connect_pinmux(struct pinmux const *p)
int is_input;
if (p->flags & DIO_ENABLE_DIRECT_INPUT) {
- /* We don't have to setup any muxes for directly connected
+ /*
+ * We don't have to setup any muxes for directly connected
* pads. The only ones that we are likely to ever care about
- * are tied to the SPS and SPI peripherals, and they're all
- * inouts, so we can just enable the digital input for them
- * regardless. */
+ * are tied to the SPP and SPI peripherals, and they're all
+ * inputs, so we can just enable the digital input for them
+ * regardless.
+ */
is_input = 1;
} else {
- /* Pads that must be muxed to specific GPIOs or peripherals may
- * or may not be inputs. We'll check those individually. */
+ /*
+ * Pads that must be muxed to specific GPIOs or peripherals may
+ * or may not be inputs. We'll check those individually.
+ */
if (p->flags & DIO_TO_PERIPHERAL)
is_input = connect_dio_to_peripheral(p);
else