Skip to content

Commit ab28398

Browse files
committed
style: Inconsistent macro names changed
Fix incorrect header file pre-macro names in 'include/zephyr/dt-bindings'. Signed-off-by: James Roy <[email protected]>
1 parent 10e12ba commit ab28398

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+408
-151
lines changed

include/zephyr/dt-bindings/acpi/acpi.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ACPI_ACPI_H_
7+
#define ZEPHYR_INCLUDE_DT_BINDINGS_ACPI_ACPI_H_
68

79
#define ACPI_IRQ_DETECT 0xFFFFFFFU
810
#define ACPI_IRQ_FLAG_DETECT 0xFFFFFFFU
11+
12+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ACPI_ACPI_H_ */

include/zephyr/dt-bindings/adc/stm32_adc.h

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_STM32_ADC_H_
7-
#define ZEPHYR_INCLUDE_DT_BINDINGS_STM32_ADC_H_
6+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32_ADC_H_
7+
#define ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32_ADC_H_
88

99
#include <zephyr/dt-bindings/adc/adc.h>
1010

@@ -64,4 +64,24 @@
6464
STM32_ADC(resolution, reg_val, STM32_ADC_RES_MASK, STM32_ADC_RES_SHIFT, \
6565
STM32_ADC_RES_REG)
6666

67-
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_STM32_ADC_H_ */
67+
/**
68+
* @name STM32 ADC clock source
69+
* This value is to set <st,adc-clock-source>
70+
* One or both values may not apply to all series. Refer to the RefMan
71+
* @{
72+
*/
73+
#define SYNC 1
74+
#define ASYNC 2
75+
/** @} */
76+
77+
/**
78+
* @name STM32 ADC sequencer type
79+
* This value is to set <st,adc-sequencer>
80+
* One or both values may not apply to all series. Refer to the RefMan
81+
* @{
82+
*/
83+
#define NOT_FULLY_CONFIGURABLE 0
84+
#define FULLY_CONFIGURABLE 1
85+
/** @} */
86+
87+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32_ADC_H_ */

include/zephyr/dt-bindings/adc/stm32f1_adc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_STM32F1_ADC_H_
7-
#define ZEPHYR_INCLUDE_DT_BINDINGS_STM32F1_ADC_H_
6+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32F1_ADC_H_
7+
#define ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32F1_ADC_H_
88

99
#include <zephyr/dt-bindings/adc/stm32_adc.h>
1010

@@ -23,4 +23,4 @@
2323
#define STM32F1_ADC_RES(resolution) \
2424
STM32_ADC_RES(resolution, STM32_ADC_RES_REG_VAL)
2525

26-
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_STM32F1_ADC_H_ */
26+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32F1_ADC_H_ */

include/zephyr/dt-bindings/adc/stm32f4_adc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_STM32F4_ADC_H_
7-
#define ZEPHYR_INCLUDE_DT_BINDINGS_STM32F4_ADC_H_
6+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32F4_ADC_H_
7+
#define ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32F4_ADC_H_
88

99
#include <zephyr/dt-bindings/adc/stm32_adc.h>
1010

@@ -13,4 +13,4 @@
1313
#define STM32_ADC_RES_SHIFT 24
1414
#define STM32_ADC_RES_MASK BIT_MASK(2)
1515

16-
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_STM32F4_ADC_H_ */
16+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32F4_ADC_H_ */

include/zephyr/dt-bindings/adc/stm32h7_adc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_STM32H7_ADC_H_
7-
#define ZEPHYR_INCLUDE_DT_BINDINGS_STM32H7_ADC_H_
6+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32H7_ADC_H_
7+
#define ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32H7_ADC_H_
88

99
#include <zephyr/dt-bindings/adc/stm32_adc.h>
1010

@@ -24,4 +24,4 @@
2424
STM32_ADC(resolution, reg_val, STM32H72X_ADC3_RES_MASK, \
2525
STM32H72X_ADC3_RES_SHIFT, STM32_ADC_RES_REG)
2626

27-
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_STM32H7_ADC_H_ */
27+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32H7_ADC_H_ */

include/zephyr/dt-bindings/adc/stm32l4_adc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_STM32L4_ADC_H_
7-
#define ZEPHYR_INCLUDE_DT_BINDINGS_STM32L4_ADC_H_
6+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32L4_ADC_H_
7+
#define ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32L4_ADC_H_
88

99
#include <zephyr/dt-bindings/adc/stm32_adc.h>
1010

@@ -13,4 +13,4 @@
1313
#define STM32_ADC_RES_SHIFT 3
1414
#define STM32_ADC_RES_MASK BIT_MASK(2)
1515

16-
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_STM32L4_ADC_H_ */
16+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32L4_ADC_H_ */

include/zephyr/dt-bindings/adc/stm32u5_adc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_STM32U5_ADC_H_
7-
#define ZEPHYR_INCLUDE_DT_BINDINGS_STM32U5_ADC_H_
6+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32U5_ADC_H_
7+
#define ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32U5_ADC_H_
88

99
#include <zephyr/dt-bindings/adc/stm32_adc.h>
1010

@@ -13,4 +13,4 @@
1313
#define STM32_ADC_RES_SHIFT 2
1414
#define STM32_ADC_RES_MASK BIT_MASK(2)
1515

16-
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_STM32U5_ADC_H_ */
16+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ADC_STM32U5_ADC_H_ */

include/zephyr/dt-bindings/clock/ch32v00x-clocks.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#ifndef __CH32V00X_CLOCKS_H__
8-
#define __CH32V00X_CLOCKS_H__
7+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_CH32V00X_CLOCKS_H_
8+
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_CH32V00X_CLOCKS_H_
99

1010
#define CH32V00X_AHB_PCENR_OFFSET 0
1111
#define CH32V00X_APB2_PCENR_OFFSET 1
@@ -39,4 +39,4 @@
3939
#define CH32V00X_CLOCK_PWR CH32V00X_CLOCK_CONFIG(APB1, 28)
4040
#define CH32V00X_CLOCK_USB CH32V00X_CLOCK_CONFIG(APB1, 23)
4141

42-
#endif
42+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_CH32V00X_CLOCKS_H_ */

include/zephyr/dt-bindings/clock/imx8ulp_clock.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#ifndef _INCLUDE_ZEPHYR_DT_BINDINGS_CLOCK_IMX8ULP_CLOCK_H_
8-
#define _INCLUDE_ZEPHYR_DT_BINDINGS_CLOCK_IMX8ULP_CLOCK_H_
7+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_IMX8ULP_CLOCK_H_
8+
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_IMX8ULP_CLOCK_H_
99

1010
/* IMPORTANT: the indexes used by these macros need to
1111
* match the indexes in the PCC driver LUT at which the
@@ -15,4 +15,4 @@
1515
/* clocks managed by PCC4 */
1616
#define IMX8ULP_CLOCK_LPUART7 0
1717

18-
#endif /* _INCLUDE_ZEPHYR_DT_BINDINGS_CLOCK_IMX8ULP_CLOCK_H_ */
18+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_IMX8ULP_CLOCK_H_ */

include/zephyr/dt-bindings/clock/r7fa4m1xxxxxx-clock.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#ifndef ZEPHYR_DT_BINDINGS_CLOCK_R7FA4M1XXXXXX_CLOCK_H_
8-
#define ZEPHYR_DT_BINDINGS_CLOCK_R7FA4M1XXXXXX_CLOCK_H_
7+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_R7FA4M1XXXXXX_CLOCK_H_
8+
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_R7FA4M1XXXXXX_CLOCK_H_
99

1010
#include <zephyr/dt-bindings/clock/renesas-ra-cgc.h>
1111

12-
#endif /* ZEPHYR_DT_BINDINGS_CLOCK_R7FA4M1XXXXXX_CLOCK_H_ */
12+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_R7FA4M1XXXXXX_CLOCK_H_ */

0 commit comments

Comments
 (0)