Skip to content

Commit 85f92f1

Browse files
committed
drivers: video: ov5640: Change pixel rate type to uint32_t
Modify the pixel rate type to uint32_t which is sufficient to support pixel rates range. Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com> Signed-off-by: Trung Hieu Le <trunghieu.le@nxp.com>
1 parent deed71e commit 85f92f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/ov5640.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ struct ov5640_mode_config {
143143

144144
struct ov5640_data {
145145
struct video_format fmt;
146-
uint64_t cur_pixrate;
146+
uint32_t cur_pixrate;
147147
uint16_t cur_frmrate;
148148
const struct ov5640_mode_config *cur_mode;
149149
};
@@ -1092,7 +1092,7 @@ static inline int ov5640_get_ctrl(const struct device *dev, unsigned int cid, vo
10921092

10931093
switch (cid) {
10941094
case VIDEO_CID_PIXEL_RATE:
1095-
*((uint64_t *)value) = drv_data->cur_pixrate;
1095+
*((uint32_t *)value) = drv_data->cur_pixrate;
10961096

10971097
return 0;
10981098
default:

0 commit comments

Comments
 (0)