[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z5YWQr5fMcSIUIs0@shikoro>
Date: Sun, 26 Jan 2025 12:02:26 +0100
From: Wolfram Sang <wsa+renesas@...g-engineering.com>
To: Arnd Bergmann <arnd@...nel.org>
Cc: Andi Shyti <andi.shyti@...nel.org>, Carlos Song <carlos.song@....com>,
Arnd Bergmann <arnd@...db.de>, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] i2c: imx-lpi2c: select CONFIG_I2C_SLAVE
On Wed, Jan 22, 2025 at 07:48:36AM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> 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@...db.de>
Applied to for-current, thanks!
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists