Skip to content

Commit 5851a88

Browse files
arndbWolfram Sang
authored andcommitted
i2c: imx-lpi2c: select CONFIG_I2C_SLAVE
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: 1ee867e ("i2c: imx-lpi2c: add target mode support") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Carlos Song <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent d0d106a commit 5851a88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,7 @@ config I2C_IMX
756756
config I2C_IMX_LPI2C
757757
tristate "IMX Low Power I2C interface"
758758
depends on ARCH_MXC || COMPILE_TEST
759+
select I2C_SLAVE
759760
help
760761
Say Y here if you want to use the Low Power IIC bus controller
761762
on the Freescale i.MX processors.

0 commit comments

Comments
 (0)