Missing #ifdef guard in Zephyr I2C driver causes a compile error

Hello,

There is a missing #ifdef check on the following line of SDK Zephyr at the latest version v3.1.99-ncs1:

https://github.com/nrfconnect/sdk-zephyr/blob/98bc3a7a6b3917ce5a058e7a7271d3036edffb88/drivers/i2c/i2c_nrfx_twim.c#L292

This causes a compilation error where pcfg field of i2c_nrfx_twim_config structure is not defined.

All other lines accessing this field are protected by #ifdef CONFIG_PINCTRL because this field only exists under that condition.

Related