system/nxinit: fix unkown -> unknown typo in resetcause[]

codespell flagged this in PR #3751 CI:
  system/nxinit/init.c:119: unkown ==> unknown
  system/nxinit/init.c:130: unkown ==> unknown

Both entries were introduced by the resetcause-for-triggers commit and
are unrelated to the earlier nxstyle regression already discussed on
the PR.

Assisted-by: GitHubCopilot:claude-sonnet-5
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
wangjianyu3 2026-08-25 13:05:39 +08:00 committed by Alan C. Assis
parent c91fe7bf01
commit 82eb73da76

View file

@ -116,7 +116,7 @@ static int init_boot_reason(FAR struct action_manager_s *am)
{
static FAR const char *const resetcause[] =
{
[BOARDIOC_RESETCAUSE_NONE] = "unkown",
[BOARDIOC_RESETCAUSE_NONE] = "unknown",
[BOARDIOC_RESETCAUSE_SYS_CHIPPOR] = "cold",
[BOARDIOC_RESETCAUSE_SYS_RWDT] = "watchdog",
[BOARDIOC_RESETCAUSE_SYS_BOR] = "undervoltage",
@ -127,7 +127,7 @@ static int init_boot_reason(FAR struct action_manager_s *am)
[BOARDIOC_RESETCAUSE_CPU_RWDT] = "watchdog",
[BOARDIOC_RESETCAUSE_PIN] = "powerkey",
[BOARDIOC_RESETCAUSE_LOWPOWER] = "lowpower",
[BOARDIOC_RESETCAUSE_UNKOWN] = "unkown",
[BOARDIOC_RESETCAUSE_UNKOWN] = "unknown",
};
static FAR const char * const resetflag[] =