cleanup: update comment formatting
Put comments on a newline above fields to allow for longer comments in
this file.
BRANCH=none
TEST=none
@@ -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,7 +41,8 @@ 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) {},
