video: mt9m114: Fix integer handling issues
Fix 32-bit endian conversion.
CID: 205643
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
diff --git a/drivers/video/mt9m114.c b/drivers/video/mt9m114.c
index 7e03168..d0c77d4 100644
--- a/drivers/video/mt9m114.c
+++ b/drivers/video/mt9m114.c
@@ -173,7 +173,7 @@
*(u16_t *)value = sys_be16_to_cpu(*(u16_t *)value);
break;
case 4:
- *(u16_t *)value = sys_be32_to_cpu(*(u16_t *)value);
+ *(u32_t *)value = sys_be32_to_cpu(*(u32_t *)value);
break;
case 1:
break;