Skip to content

Commit 3653174

Browse files
kl-cruzrlubos
authored andcommitted
[nrf fromtree] drivers: audio: Fix nrfx_pdm compilation
Fixes drv_data structure handling in various configuration. Signed-off-by: Karol Lasończyk <[email protected]> (cherry picked from commit afff286)
1 parent 9f0c017 commit 3653174

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/audio/dmic_nrfx_pdm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,11 +668,12 @@ static int dmic_nrfx_pdm_read(const struct device *dev,
668668

669669
static void init_clock_manager(const struct device *dev)
670670
{
671-
struct dmic_nrfx_pdm_drv_data *drv_data = dev->data;
672671
#if DT_NODE_HAS_STATUS_OKAY(NODE_AUDIO_AUXPLL)
672+
struct dmic_nrfx_pdm_drv_data *drv_data = dev->data;
673673
drv_data->audiopll_dev = DEVICE_DT_GET(NODE_AUDIO_AUXPLL);
674674
#elif CONFIG_CLOCK_CONTROL_NRF
675675
clock_control_subsys_t subsys;
676+
struct dmic_nrfx_pdm_drv_data *drv_data = dev->data;
676677
#if NRF_CLOCK_HAS_HFCLKAUDIO
677678
const struct dmic_nrfx_pdm_drv_cfg *drv_cfg = dev->config;
678679

0 commit comments

Comments
 (0)