Skip to content

Commit

Permalink
drivers: dac: esp32: fix clock control subsys argument
Browse files Browse the repository at this point in the history
Current cfg->clock_subsys is passed as address and is
causing driver assertion.

Fixes #69198

Signed-off-by: Sylvio Alves <[email protected]>
  • Loading branch information
sylvioalves authored and nashif committed Feb 26, 2024
1 parent 6510bd2 commit a79c54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dac/dac_esp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static int dac_esp32_init(const struct device *dev)
}

if (clock_control_on(cfg->clock_dev,
(clock_control_subsys_t) &cfg->clock_subsys) != 0) {
(clock_control_subsys_t) cfg->clock_subsys) != 0) {
LOG_ERR("DAC clock setup failed (%d)", -EIO);
return -EIO;
}
Expand Down

0 comments on commit a79c54d

Please sign in to comment.