Skip to content

Commit e73adc9

Browse files
[nrf fromtree] drivers: i2c: i2c_nrfx_twis: patch dma buf mem section
The macros placing the DMA memory buffer in the appropriate section in RAM was malformed. This PR fixes it. Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit bb2833d)
1 parent c8aea90 commit e73adc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/i2c/i2c_nrfx_twis.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
DT_IRQ(SHIM_NRF_TWIS_NODE(id), priority)
3333

3434
#define SHIM_NRF_TWIS_HAS_MEMORY_REGIONS(id) \
35-
DT_NODE_HAS_PROP(id, memory_regions)
35+
DT_NODE_HAS_PROP(SHIM_NRF_TWIS_NODE(id), memory_regions)
3636

3737
#define SHIM_NRF_TWIS_LINKER_REGION_NAME(id) \
3838
LINKER_DT_NODE_REGION_NAME(DT_PHANDLE(SHIM_NRF_TWIS_NODE(id), memory_regions))
3939

4040
#define SHIM_NRF_TWIS_BUF_ATTR_SECTION(id) \
41-
__attribute__((__section__(SHIM_NRF_TWIS_LINKER_REGION_NAME, ())))
41+
__attribute__((__section__(SHIM_NRF_TWIS_LINKER_REGION_NAME(id))))
4242

4343
#define SHIM_NRF_TWIS_BUF_ATTR(id) \
4444
COND_CODE_1( \

0 commit comments

Comments
 (0)