Skip to content

Commit 1fca8ef

Browse files
committed
scripts/checkpatch: typdefsfile: Derogate on STM32Cube CMSIS *_TypeDef
Add a derogation to checkpatch's 'SPACING' rule, which randomly returns the following type of issue when STM32Cube HAL *_TypeDef are used: -:10: ERROR:SPACING: need consistent spacing around '*' (ctx:WxV) zephyrproject-rtos#10: FILE: drivers/adc/adc_stm32.c:806: + ADC_TypeDef *adc = config->base; This derogation applies to all _TypDef structures defined in STM32Cube CMSIS descriptions: FMC_Bank1E_6_TypeDef DMA_Channel_TypeDef ADC_TypeDef Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
1 parent ae71444 commit 1fca8ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/checkpatch/typedefsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ mbedtls_pk_context
44
z_arch_esf_t
55
pinctrl_soc_pin_t
66
io_rw_32
7+
\b[a-zA-Z_][a-zA-Z0-9_]*TypeDef

0 commit comments

Comments
 (0)