video: mt9m114: Fix integer handling issues
Fix 32-bit endian conversion. CID: 205643 Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
This commit is contained in:
parent
187397ab16
commit
14a5fcdb35
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ static int mt9m114_read_reg(struct device *dev, u16_t reg_addr, u8_t reg_size,
|
|||
*(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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue