Skip to content

Conversation

etienne-lms
Copy link
Contributor

Correct stm32_ltdc_set_pixel_format() to return a valid errno instead of mixing HAL return values and errno return values.

Correct mipi_dsi_stm32_host_init() and mipi_dsi_stm32_attach() to return a valid errno instead of mixing HAL return values and errno return values.

Clarify HAL return value is of type HAL_StatusTypeDef and not an int in mipi_dsi_stm32_transfer().

{
int err;
struct display_stm32_ltdc_data *data = dev->data;
HAL_StatusTypeDeft err;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
HAL_StatusTypeDeft err;
HAL_StatusTypeDef err;

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oups... thanks.

Correct stm32_ltdc_set_pixel_format() to return a valid errno instead
of mixing HAL return values and errno return values.

Signed-off-by: Etienne Carriere <[email protected]>
@etienne-lms etienne-lms force-pushed the stm32-hal-ret-display branch from 36fe11f to 1f9f758 Compare October 9, 2025 14:28
Correct mipi_dsi_stm32_host_init() and mipi_dsi_stm32_attach()
to return a valid errno instead of mixing HAL return values and
errno return values.

Clarify HAL return value is of type HAL_StatusTypeDef and not an
int in mipi_dsi_stm32_transfer().

Signed-off-by: Etienne Carriere <[email protected]>
@etienne-lms etienne-lms force-pushed the stm32-hal-ret-display branch from 1f9f758 to 5c82f71 Compare October 9, 2025 15:40
Copy link

sonarqubecloud bot commented Oct 9, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants