Skip to content

Commit be72b8e

Browse files
nika-nordicjaz1-nordic
authored andcommitted
[nrf fromlist] drivers: pwm: pwm_nrf_sw: fix gpiote reference
GPIOTE instance should be accessed via pointer. Upstream PR #: 98527 Signed-off-by: Nikodem Kastelik <[email protected]>
1 parent b68b4cf commit be72b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pwm/pwm_nrf_sw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static int pwm_nrf_sw_init(const struct device *dev)
350350
uint32_t src_d = nrfx_gppi_domain_id_get((USE_RTC ? (uint32_t)rtc : (uint32_t)timer));
351351

352352
for (uint32_t i = 0; i < config->map_size; i++) {
353-
uint32_t dst_d = nrfx_gppi_domain_id_get((uint32_t)config->gpiote[i].p_reg);
353+
uint32_t dst_d = nrfx_gppi_domain_id_get((uint32_t)config->gpiote[i]->p_reg);
354354
int rv;
355355

356356
/* Allocate resources. */

0 commit comments

Comments
 (0)