drivers: entropy: stm32: fix missing rng in function call

Replace rng to dev_data->rng in call to LL_RNG_SetHealthConfig.

Signed-off-by: John Johnson <john.filip.johnson@gmail.com>
This commit is contained in:
John Johnson 2024-02-28 09:39:27 +01:00 committed by David Leach
parent ff8c8923ae
commit c13930791d

View file

@ -717,7 +717,7 @@ static int entropy_stm32_rng_pm_action(const struct device *dev,
#if DT_INST_NODE_HAS_PROP(0, health_test_config)
entropy_stm32_resume();
#if DT_INST_NODE_HAS_PROP(0, health_test_magic)
LL_RNG_SetHealthConfig(rng, DT_INST_PROP(0, health_test_magic));
LL_RNG_SetHealthConfig(dev_data->rng, DT_INST_PROP(0, health_test_magic));
#endif /* health_test_magic */
if (LL_RNG_GetHealthConfig(dev_data->rng) !=
DT_INST_PROP_OR(0, health_test_config, 0U)) {