Skip to content

Commit 448eac1

Browse files
aescolarkartben
authored andcommitted
soc/ambiq/apollo5x: Fix code compliance issues
Fix issues detected by checkpatch Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
1 parent ed4ed05 commit 448eac1

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

include/zephyr/dt-bindings/pinctrl/ambiq-apollo5-pinctrl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define APOLLO5_PIN_NUM_MASK 0xff
1515

1616
#define APOLLO5_PINMUX(pin_num, alt_func) \
17-
(pin_num << APOLLO5_PIN_NUM_POS | \
18-
alt_func << APOLLO5_ALT_FUNC_POS)
17+
(pin_num << APOLLO5_PIN_NUM_POS | \
18+
alt_func << APOLLO5_ALT_FUNC_POS)
1919

2020
#endif /* __APOLLO5_PINCTRL_H__ */

soc/ambiq/apollo5x/Kconfig.defconfig.apollo510

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
if SOC_APOLLO510
66

77
config NUM_IRQS
8-
default 134
8+
default 134
99

1010
endif # SOC_APOLLO510

soc/ambiq/apollo5x/Kconfig.soc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ config SOC_SERIES_APOLLO5X
99
Apollo5 Series MCU
1010

1111
config SOC_APOLLO510
12-
bool
12+
bool
1313
select SOC_SERIES_APOLLO5X
1414

1515
config ARMV8_1_M_PMU_EVENTCNT
16-
int
17-
default 8
16+
int
17+
default 8
1818

1919
config SOC_SERIES
2020
default "apollo5x" if SOC_SERIES_APOLLO5X

soc/ambiq/apollo5x/pinctrl_soc.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ typedef struct apollo5_pinctrl_soc_pin pinctrl_soc_pin_t;
7474
* @param prop Property name describing state pins.
7575
*/
7676
#define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \
77-
{DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
78-
DT_FOREACH_PROP_ELEM, pinmux, \
79-
Z_PINCTRL_STATE_PIN_INIT)}
77+
{DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
78+
DT_FOREACH_PROP_ELEM, pinmux, \
79+
Z_PINCTRL_STATE_PIN_INIT)}
8080

8181
#define APOLLO5_GET_PIN_NUM(pinctrl) \
82-
(((pinctrl) >> APOLLO5_PIN_NUM_POS) & APOLLO5_PIN_NUM_MASK)
82+
(((pinctrl) >> APOLLO5_PIN_NUM_POS) & APOLLO5_PIN_NUM_MASK)
8383
#define APOLLO5_GET_PIN_ALT_FUNC(pinctrl) \
84-
(((pinctrl) >> APOLLO5_ALT_FUNC_POS) & APOLLO5_ALT_FUNC_MASK)
84+
(((pinctrl) >> APOLLO5_ALT_FUNC_POS) & APOLLO5_ALT_FUNC_MASK)
8585

8686

8787
#endif /* ZEPHYR_SOC_ARM_AMBIQ_APOLLO5_PINCTRL_SOC_H_ */

0 commit comments

Comments
 (0)