Skip to content

Commit 758e169

Browse files
rruuaanngkartben
authored andcommitted
style: Inconsistent macro names changed
Fix incorrect header file pre-macro names in 'include/zephyr/dt-bindings'. Signed-off-by: James Roy <rruuaanng@outlook.com>
1 parent a7a3f06 commit 758e169

Some content is hidden

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

56 files changed

+156
-142
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: 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_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,4 @@
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+
#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_HB_PCENR_OFFSET 0
1111
#define CH32V00X_PB2_PCENR_OFFSET 1
@@ -33,4 +33,4 @@
3333
#define CH32V00X_CLOCK_I2C1 CH32V00X_CLOCK_CONFIG(PB1, 21)
3434
#define CH32V00X_CLOCK_PWR CH32V00X_CLOCK_CONFIG(PB1, 28)
3535

36-
#endif
36+
#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/ra_clock.h

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

7-
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_RA_H_
8-
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_RA_H_
7+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_RA_CLOCK_H_
8+
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_RA_CLOCK_H_
99

1010
#define MSTPA 0
1111
#define MSTPB 1
1212
#define MSTPC 2
1313
#define MSTPD 3
1414
#define MSTPE 4
1515

16-
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_RA_H_ */
16+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_RA_CLOCK_H_ */

0 commit comments

Comments
 (0)