Skip to content

Commit

Permalink
drivers: ethernet: eth_stm32_hal: Correct indentation
Browse files Browse the repository at this point in the history
Adjusted indentation to follow consistent coding standards.

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
  • Loading branch information
marwaiehm-st authored and dleach02 committed Oct 24, 2024
1 parent eff9a87 commit cf36768
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/ethernet/eth_stm32_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1520,11 +1520,11 @@ static int ptp_stm32_init(const struct device *port)
/* Query ethernet clock rate */
ret = clock_control_get_rate(eth_dev_data->clock,
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32h7_ethernet)
(clock_control_subsys_t)&eth_cfg->pclken,
(clock_control_subsys_t)&eth_cfg->pclken,
#else
(clock_control_subsys_t)&eth_cfg->pclken_ptp,
(clock_control_subsys_t)&eth_cfg->pclken_ptp,
#endif /* DT_HAS_COMPAT_STATUS_OKAY(st_stm32h7_ethernet) */
&ptp_hclk_rate);
&ptp_hclk_rate);
if (ret) {
LOG_ERR("Failed to query ethernet clock");
return -EIO;
Expand Down

0 comments on commit cf36768

Please sign in to comment.