On Wed, Jan 22, 2025 at 07:48:36AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@xxxxxxxx> > > The addition of target mode causes a build failure when CONFIG_I2C_SLAVE > is turned off: > > drivers/i2c/busses/i2c-imx-lpi2c.c:1273:10: error: 'const struct i2c_algorithm' has no member named 'reg_target' > 1273 | .reg_target = lpi2c_imx_register_target, > | ^~~~~~~~~~ > drivers/i2c/busses/i2c-imx-lpi2c.c:1274:10: error: 'const struct i2c_algorithm' has no member named 'unreg_target' > 1274 | .unreg_target = lpi2c_imx_unregister_target, > | ^~~~~~~~~~~~ > > Select the Kconfig symbol like we do for other similar drivers. > > Fixes: 1ee867e465c1 ("i2c: imx-lpi2c: add target mode support") > Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> Applied to for-current, thanks!
Attachment:
signature.asc
Description: PGP signature