Skip to content

Commit

Permalink
mcux: drivers: mipi_dsi_spit\fsl_mipi_dsi.c double promotion warning fix
Browse files Browse the repository at this point in the history
Force the constant 8.0 to be 8.0f to avoid the double promotion warning.

Signed-off-by: David Leach <[email protected]>
  • Loading branch information
dleach02 committed Aug 5, 2024
1 parent a45318f commit 322d775
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mcux/README
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,6 @@ Patch List:
- mcux-sdk-middleware-connectivity-framework: rw61x: Fix assertion OSA Mutex Alloc fail
- mcux-sdk-middleware-connectivity-framework: rw61x: Remove static from hci_cal_data buffers to be used inside Zephyr
- mcux-sdk/drivers/s3mu/fsl_s3mu.c: rename _BIT macro to avoid collision from util_macro.h in Zephyr

- Skipped updates from mcux-sdk\devices\MIMX9352\ as this overrides the Cortex A support
- Modifed mcux\mcux-sdk\drivers\mipi_dsi_split\fsl_mipi_dsi.c line 541 to force 8.0 to float (8.0f) to avoid [-Double-promotion] warning
2 changes: 1 addition & 1 deletion mcux/mcux-sdk/drivers/mipi_dsi_split/fsl_mipi_dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ void DSI_SetDpiConfig(const MIPI_DSI_Type *base,
assert(NULL != config);

/* coefficient DPI event size to number of DSI bytes. */
float coff = ((float)numLanes * (float)dsiHsBitClkFreq_Hz) / ((float)dpiPixelClkFreq_Hz * 8.0);
float coff = ((float)numLanes * (float)dsiHsBitClkFreq_Hz) / ((float)dpiPixelClkFreq_Hz * 8.0f);

DSI_HOST_DPI_INTFC_Type *dpi = base->dpi;

Expand Down

0 comments on commit 322d775

Please sign in to comment.