zephyr/drivers/cros_system/cros_system_npcx.c: Format with clang-format
BRANCH=none
TEST=none
@@ -90,8 +90,8 @@ struct cros_system_npcx_data {
static int system_npcx_watchdog_stop(void)
{
if (IS_ENABLED(CONFIG_WATCHDOG)) {
- const struct device *wdt_dev = DEVICE_DT_GET(
- DT_NODELABEL(twd0));
+ const struct device *wdt_dev =
+ DEVICE_DT_GET(DT_NODELABEL(twd0));
if (!device_is_ready(wdt_dev)) {
LOG_ERR("Error: device %s is not ready", wdt_dev->name);
return -ENODEV;
@@ -196,7 +196,8 @@ static void system_npcx_set_wakeup_gpios_before_hibernate(void)
*/
#define WAKEUP_SETUP(id, prop, idx) \
do { \
- gpio_pin_configure_dt(GPIO_DT_FROM_NODE(WAKEUP_NGPIO(id, prop, idx)), \
+ gpio_pin_configure_dt( \
+ GPIO_DT_FROM_NODE(WAKEUP_NGPIO(id, prop, idx)), \
GPIO_INPUT); \
gpio_enable_dt_interrupt( \
GPIO_INT_FROM_NODE(WAKEUP_INT(id, prop, idx))); \
@@ -205,8 +206,7 @@ do { \
/*
* For all the wake-pins, re-init the GPIO and re-enable the interrupt.
*/
- DT_FOREACH_PROP_ELEM(SYSTEM_DT_NODE_HIBERNATE_CONFIG,
- wakeup_irqs,
+ DT_FOREACH_PROP_ELEM(SYSTEM_DT_NODE_HIBERNATE_CONFIG, wakeup_irqs,
WAKEUP_SETUP);
#undef WAKEUP_INT
@@ -460,8 +460,8 @@ static int cros_system_npcx_init(const struct device *dev)
data->reset = UNKNOWN_RST;
/* Use scratch bit to check power on reset or VCC1_RST reset. */
if (!IS_BIT_SET(inst_scfg->RSTCTL, NPCX_RSTCTL_VCC1_RST_SCRATCH)) {
- bool is_vcc1_rst = IS_BIT_SET(inst_scfg->RSTCTL,
- NPCX_RSTCTL_VCC1_RST_STS);
+ bool is_vcc1_rst =
+ IS_BIT_SET(inst_scfg->RSTCTL, NPCX_RSTCTL_VCC1_RST_STS);
data->reset = is_vcc1_rst ? VCC1_RST_PIN : POWERUP;
}
