diff options
author | Jett Rink <jettrink@chromium.org> | 2020-10-23 11:33:31 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-23 21:10:39 +0000 |
commit | 8c8078f69339a2fbb15d9bc11f72ea459b18e021 (patch) | |
tree | f6733a61e4b7128677c188833b78ccf1f38a613b | |
parent | 063aa41ff51221dd844e6c1cc535f5f01ccf42dc (diff) | |
download | chrome-ec-8c8078f69339a2fbb15d9bc11f72ea459b18e021.tar.gz |
cleanup: update comment formatting
Put comments on a newline above fields to allow for longer comments in
this file.
BRANCH=none
BUG=none
TEST=none
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: I89740558e7bb508f7a213cd6817ae91ad9b6f5a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2495137
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r-- | zephyr/shim/src/gpio.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/zephyr/shim/src/gpio.c b/zephyr/shim/src/gpio.c index 96d982052c..642210710f 100644 --- a/zephyr/shim/src/gpio.c +++ b/zephyr/shim/src/gpio.c @@ -16,10 +16,14 @@ LOG_MODULE_REGISTER(gpio_shim, LOG_LEVEL_ERR); * device tree node. */ struct gpio_config { - const char *name; /* GPIO net name */ - const char *dev_name; /* Set at build time for lookup */ - gpio_pin_t pin; /* Bit number of pin within device */ - gpio_flags_t init_flags; /* From build time */ + /* GPIO net name */ + const char *name; + /* Set at build time for lookup */ + const char *dev_name; + /* Bit number of pin within device */ + gpio_pin_t pin; + /* From DTS, excludes interrupts flags */ + gpio_flags_t init_flags; }; #define GPIO_CONFIG(id) \ @@ -37,10 +41,11 @@ static const struct gpio_config configs[] = { /* Runtime information for each GPIO that is configured in named_gpios */ struct gpio_data { - const struct device *dev; /* Set during in init function */ + /* Runtime device for gpio port. Set during in init function */ + const struct device *dev; }; -#define GPIO_DATA(id) { }, +#define GPIO_DATA(id) {}, static struct gpio_data data[] = { #if DT_NODE_EXISTS(DT_PATH(named_gpios)) DT_FOREACH_CHILD(DT_PATH(named_gpios), GPIO_DATA) |