pm: stats: fix typo

There is a typo in argument for the STATS_NAME_INIT_PARMS macro.
This causes an error during build.
The correct reference should be "pm_stats".

Signed-off-by: Steven Slupsky <sslupsky@gmail.com>
This commit is contained in:
Steven Slupsky 2022-08-17 09:22:19 -06:00 committed by Kumar Gala
parent efc0928570
commit fe716dbb09

View file

@ -40,7 +40,7 @@ static int pm_stats_init(const struct device *dev)
snprintk(names[i][j], PM_STAT_NAME_LEN,
"pm_cpu_%03d_state_%1d_stats", i, j);
stats_init(&(stats[i][j].s_hdr), STATS_SIZE_32, 3U,
STATS_NAME_INIT_PARMS(stats));
STATS_NAME_INIT_PARMS(pm_stats));
stats_register(names[i][j], &(stats[i][j].s_hdr));
}
}