drivers: mt9m114: Fix value type
Fixes value type conversion from uint16_t to uint32_t. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
33220ef086
commit
c626070ae6
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ static int mt9m114_write_reg(const struct device *dev, uint16_t reg_addr,
|
|||
*(uint16_t *)value = sys_cpu_to_be16(*(uint16_t *)value);
|
||||
break;
|
||||
case 4:
|
||||
*(uint16_t *)value = sys_cpu_to_be32(*(uint16_t *)value);
|
||||
*(uint32_t *)value = sys_cpu_to_be32(*(uint32_t *)value);
|
||||
break;
|
||||
case 1:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue