Skip to content

Commit

Permalink
tests: devicetree: api: align DT_IRQN test
Browse files Browse the repository at this point in the history
Not sure why the `DT_IRQN` tests are tabbed, fix that.

Signed-off-by: Yong Cong Sin <[email protected]>
  • Loading branch information
ycsin authored and cfriedt committed Jan 23, 2024
1 parent 734a7db commit 8cfff4b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/lib/devicetree/api/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,15 +658,15 @@ ZTEST(devicetree_api, test_irq)
zassert_equal(DT_IRQ(TEST_I2C_BUS, priority), 2, "");

/* DT_IRQN */
#ifndef CONFIG_MULTI_LEVEL_INTERRUPTS
zassert_equal(DT_IRQN(TEST_I2C_BUS), 6, "");
zassert_equal(DT_IRQN(DT_INST(0, DT_DRV_COMPAT)), 30, "");
#else
zassert_equal(DT_IRQN(TEST_I2C_BUS),
((6 + 1) << CONFIG_1ST_LEVEL_INTERRUPT_BITS) | 11, "");
zassert_equal(DT_IRQN(DT_INST(0, DT_DRV_COMPAT)),
((30 + 1) << CONFIG_1ST_LEVEL_INTERRUPT_BITS) | 11, "");
#endif
#ifndef CONFIG_MULTI_LEVEL_INTERRUPTS
zassert_equal(DT_IRQN(TEST_I2C_BUS), 6, "");
zassert_equal(DT_IRQN(DT_INST(0, DT_DRV_COMPAT)), 30, "");
#else
zassert_equal(DT_IRQN(TEST_I2C_BUS),
((6 + 1) << CONFIG_1ST_LEVEL_INTERRUPT_BITS) | 11, "");
zassert_equal(DT_IRQN(DT_INST(0, DT_DRV_COMPAT)),
((30 + 1) << CONFIG_1ST_LEVEL_INTERRUPT_BITS) | 11, "");
#endif

/* DT_IRQN_BY_IDX */
#ifndef CONFIG_MULTI_LEVEL_INTERRUPTS
Expand Down

0 comments on commit 8cfff4b

Please sign in to comment.