Skip to content

Commit 0a0e041

Browse files
benediktibkkartben
authored andcommitted
drivers: fpga: fix build of ICE40 bitbang with PINCTRL
Fix the build of the ICE40 FPGA bitbang driver with PINCTRL=y. Fixes #87739. Signed-off-by: Benedikt Schmidt <[email protected]>
1 parent 6f6a687 commit 0a0e041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/fpga/fpga_ice40_bitbang.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ static int fpga_ice40_load(const struct device *dev, uint32_t *image_ptr, uint32
229229
(void)gpio_pin_configure_dt(&config_bitbang->clk, GPIO_DISCONNECTED);
230230
(void)gpio_pin_configure_dt(&config_bitbang->pico, GPIO_DISCONNECTED);
231231
#ifdef CONFIG_PINCTRL
232-
(void)pinctrl_apply_state(config->pincfg, PINCTRL_STATE_DEFAULT);
232+
(void)pinctrl_apply_state(config_bitbang->pincfg, PINCTRL_STATE_DEFAULT);
233233
#endif /* CONFIG_PINCTRL */
234234

235235
k_spin_unlock(&data->lock, key);

0 commit comments

Comments
 (0)