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:
Andrei Emeltchenko 2023-03-13 11:05:33 +02:00 committed by Fabio Baltieri
commit c626070ae6

View file

@ -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;