Skip to content

Commit

Permalink
Use DEVICE_DT_GET to obtain chosen entropy device (#19048)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple authored and pull[bot] committed Aug 16, 2023
1 parent a362958 commit 1151040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/Zephyr/PlatformManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static k_timer sOperationalHoursSavingTimer;
#if !CONFIG_NORDIC_SECURITY_BACKEND
static int app_entropy_source(void * data, unsigned char * output, size_t len, size_t * olen)
{
const struct device * entropy = device_get_binding(DT_CHOSEN_ZEPHYR_ENTROPY_LABEL);
const struct device * entropy = DEVICE_DT_GET(DT_CHOSEN(zephyr_entropy));
int ret = entropy_get_entropy(entropy, output, len);

if (ret == 0)
Expand Down

0 comments on commit 1151040

Please sign in to comment.