zephyr/drivers/mipi_dbi
Thorsten Spätling 5ce7845f71 mipi_dbi: stm32: use proper type for timeout argument
The reset function uses uint32_t as its 2nd parameter, which leads to the
following compiler warning.

zephyr/drivers/mipi_dbi/mipi_dbi_stm32_fmc.c:176:18: warning:
  initialization of 'int (*)(const struct device *, k_timeout_t)' from
  incompatible pointer type 'int (*)(const struct device *, uint32_t)'
  {aka 'int (*)(const struct device *, unsigned int)'}
  [-Wincompatible-pointer-types]
  176 |         .reset = mipi_dbi_stm32_fmc_reset,
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~

When you look at similar drivers,

/drivers/mipi_dbi/mipi_dbi_smartbond.c#L126
/drivers/mipi_dbi/mipi_dbi_nxp_lcdic.c#L561

you notice they use k_timeout_t.

So the whole fix is to correct the type.

Signed-off-by: Thorsten Spätling <thorsten.spaetling@vierling.de>
2024-08-27 12:45:48 +02:00
..
CMakeLists.txt
Kconfig
Kconfig.nxp_flexio_lcdif
Kconfig.nxp_lcdic
Kconfig.smartbond
Kconfig.spi
Kconfig.stm32_fmc
mipi_dbi_nxp_flexio_lcdif.c
mipi_dbi_nxp_lcdic.c drivers: mipi_dbi: nxp_lcdic: calculate reset delay correctly 2024-08-27 12:44:38 +02:00
mipi_dbi_smartbond.c
mipi_dbi_spi.c drivers: mpi_dbi: Fix wrong bit index for 3wire mode 2024-08-19 15:18:09 -04:00
mipi_dbi_stm32_fmc.c mipi_dbi: stm32: use proper type for timeout argument 2024-08-27 12:45:48 +02:00