Skip to content

Commit 036a247

Browse files
author
Alain Volmat
committed
drivers: video: dcmi: 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 <alain.volmat@foss.st.com>
1 parent f09ba39 commit 036a247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/video_stm32_dcmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ static int stm32_dcmi_enable_clock(const struct device *dev)
180180
}
181181

182182
/* Turn on DCMI peripheral clock */
183-
return clock_control_on(dcmi_clock, (clock_control_subsys_t *)&config->pclken);
183+
return clock_control_on(dcmi_clock, (clock_control_subsys_t)&config->pclken);
184184
}
185185

186186
static int video_stm32_dcmi_set_fmt(const struct device *dev, struct video_format *fmt)

0 commit comments

Comments
 (0)