xtensa/esp32s3: Apply minor fixes to documentation and code style

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei
2022-02-24 15:57:24 -03:00
committed by Xiang Xiao
parent 71e8727397
commit ea1b49119a
2 changed files with 6 additions and 7 deletions
+2 -3
View File
@@ -842,8 +842,8 @@ struct esp32s3_wdt_dev_s *esp32s3_wdt_init(enum esp32s3_wdt_inst_e wdt_id)
wdt->inuse = true; wdt->inuse = true;
} }
errout: errout:
return (struct esp32s3_wdt_dev_s *)wdt; return (struct esp32s3_wdt_dev_s *)wdt;
} }
/**************************************************************************** /****************************************************************************
@@ -882,7 +882,6 @@ void esp32s3_wdt_deinit(struct esp32s3_wdt_dev_s *dev)
DEBUGASSERT(dev != NULL); DEBUGASSERT(dev != NULL);
wdt = (struct esp32s3_wdt_priv_s *)dev; wdt = (struct esp32s3_wdt_priv_s *)dev;
wdt->inuse = false; wdt->inuse = false;
} }
@@ -86,7 +86,7 @@ enum wdt_peripheral_e
struct esp32s3_wdt_lowerhalf_s struct esp32s3_wdt_lowerhalf_s
{ {
const struct watchdog_ops_s *ops; /* Lower half operations */ const struct watchdog_ops_s *ops; /* Lower-half operations */
struct esp32s3_wdt_dev_s *wdt; /* ESP32-S3 watchdog driver */ struct esp32s3_wdt_dev_s *wdt; /* ESP32-S3 watchdog driver */
uint32_t timeout; /* The current timeout */ uint32_t timeout; /* The current timeout */
enum wdt_peripheral_e peripheral; /* Indicates if it is from RTC or Timer Module */ enum wdt_peripheral_e peripheral; /* Indicates if it is from RTC or Timer Module */
@@ -104,7 +104,7 @@ struct esp32s3_wdt_lowerhalf_s
static int wdt_handler(int irq, void *context, void *arg); static int wdt_handler(int irq, void *context, void *arg);
/* "Lower half" driver methods **********************************************/ /* "Lower-half" driver methods **********************************************/
static int wdt_lh_start(struct watchdog_lowerhalf_s *lower); static int wdt_lh_start(struct watchdog_lowerhalf_s *lower);
static int wdt_lh_stop(struct watchdog_lowerhalf_s *lower); static int wdt_lh_stop(struct watchdog_lowerhalf_s *lower);
@@ -120,7 +120,7 @@ static xcpt_t wdt_lh_capture(struct watchdog_lowerhalf_s *lower,
* Private Data * Private Data
****************************************************************************/ ****************************************************************************/
/* "Lower half" driver methods */ /* "Lower-half" driver methods */
static const struct watchdog_ops_s g_esp32s3_wdg_ops = static const struct watchdog_ops_s g_esp32s3_wdg_ops =
{ {
@@ -551,7 +551,7 @@ static xcpt_t wdt_lh_capture(struct watchdog_lowerhalf_s *lower,
* change the callback function once a callback has already been settled. * change the callback function once a callback has already been settled.
*/ */
if (priv->handler != NULL && priv->started == true) if (priv->handler != NULL && priv->started)
{ {
/* Deallocate the previous allocated interrupt /* Deallocate the previous allocated interrupt
* If there is a previous allocated interrupt. * If there is a previous allocated interrupt.