Skip to content

Commit c927d9e

Browse files
Alain Volmatkartben
authored andcommitted
video: stm32: dcmipp: correct clock_control_subsys_t cast
Correct the clock_control_subsys_t cast in calls of the clock_control_ framework. Signed-off-by: Alain Volmat <[email protected]>
1 parent 8fa7cbc commit c927d9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/video_stm32_dcmipp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,15 +1597,15 @@ static int stm32_dcmipp_enable_clock(const struct device *dev)
15971597
return err;
15981598
}
15991599

1600-
err = clock_control_on(cc_node, (clock_control_subsys_t *)&config->dcmipp_pclken);
1600+
err = clock_control_on(cc_node, (clock_control_subsys_t)&config->dcmipp_pclken);
16011601
if (err < 0) {
16021602
LOG_ERR("Failed to enable DCMIPP clock. Error %d", err);
16031603
return err;
16041604
}
16051605

16061606
#if defined(STM32_DCMIPP_HAS_CSI)
16071607
/* Turn on CSI peripheral clock */
1608-
err = clock_control_on(cc_node, (clock_control_subsys_t *)&config->csi_pclken);
1608+
err = clock_control_on(cc_node, (clock_control_subsys_t)&config->csi_pclken);
16091609
if (err < 0) {
16101610
LOG_ERR("Failed to enable CSI clock. Error %d", err);
16111611
return err;

0 commit comments

Comments
 (0)