drivers: remove what appears to be code from comments

Some tools consider this as commented code because of the ifdef, so
remove that and fix a coding guideline violation.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-03-31 14:39:38 -04:00
parent 3f4f3f6c43
commit 5fa12073cb
4 changed files with 6 additions and 6 deletions

View file

@ -476,7 +476,7 @@ static void litex_clk_print_all_params(void)
litex_clk_print_params(&ldev->clkouts[c]);
}
}
#endif /* #ifdef CONFIG_CLOCK_CONTROL_LOG_LEVEL_DBG */
#endif /* CONFIG_CLOCK_CONTROL_LOG_LEVEL_DBG */
/* Returns raw value ready to be written into MMCM */
static inline uint16_t litex_clk_calc_DI(uint16_t DO_val, uint16_t mask,
@ -1480,7 +1480,7 @@ int litex_clk_set_rate(struct litex_clk_clkout *lcko, unsigned long rate)
#ifdef CONFIG_CLOCK_CONTROL_LOG_LEVEL_DBG
litex_clk_print_all_params();
litex_clk_print_all_regs();
#endif /* #ifdef CONFIG_CLOCK_CONTROL_LOG_LEVEL_DBG */
#endif /* CONFIG_CLOCK_CONTROL_LOG_LEVEL_DBG */
return 0;
}
@ -1769,7 +1769,7 @@ static int litex_clk_init(const struct device *dev)
#ifdef CONFIG_CLOCK_CONTROL_LOG_LEVEL_DBG
litex_clk_print_all_params();
litex_clk_print_all_regs();
#endif /* #ifdef CONFIG_CLOCK_CONTROL_LOG_LEVEL_DBG */
#endif /* CONFIG_CLOCK_CONTROL_LOG_LEVEL_DBG */
LOG_INF("LiteX Clock Control driver initialized");
return 0;

View file

@ -147,4 +147,4 @@ static struct modem_pin modem_pins[] = {
#endif
};
#endif /* #ifndef QUECTEL_BG9X_H */
#endif /* QUECTEL_BG9X_H */

View file

@ -137,7 +137,7 @@
#define __syscall static inline
#else
#define __syscall
#endif /* #ifndef ZTEST_UNITTEST */
#endif /* ZTEST_UNITTEST */
/* Definitions for struct declaration tags. These are sentinel values used by
* parse_syscalls.py to gather a list of names of struct declarations that

View file

@ -778,7 +778,7 @@ int espi_saf_test1(uint32_t spi_addr)
return rc;
}
#endif /* #ifdef CONFIG_ESPI_SAF */
#endif /* CONFIG_ESPI_SAF */
static void host_warn_handler(uint32_t signal, uint32_t status)
{