diff mbox series

i2c: cadence: allow COMPILE_TEST

Message ID 20220212194549.11021-1-wsa@kernel.org
State Accepted
Commit 0b0dcb3882c8f08bdeafa03adb4487e104d26050
Headers show
Series i2c: cadence: allow COMPILE_TEST | expand

Commit Message

Wolfram Sang Feb. 12, 2022, 7:45 p.m. UTC
Driver builds fine with COMPILE_TEST. Enable it for wider test coverage
and easier maintenance.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
---
 drivers/i2c/busses/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michal Simek Feb. 13, 2022, 1:56 p.m. UTC | #1
On 2/12/22 20:45, Wolfram Sang wrote:
> Driver builds fine with COMPILE_TEST. Enable it for wider test coverage
> and easier maintenance.
> 
> Signed-off-by: Wolfram Sang <wsa@kernel.org>
> ---
>   drivers/i2c/busses/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
> index 42da31c1ab70..bad2fadc94a3 100644
> --- a/drivers/i2c/busses/Kconfig
> +++ b/drivers/i2c/busses/Kconfig
> @@ -488,7 +488,7 @@ config I2C_BRCMSTB
>   
>   config I2C_CADENCE
>   	tristate "Cadence I2C Controller"
> -	depends on ARCH_ZYNQ || ARM64 || XTENSA
> +	depends on ARCH_ZYNQ || ARM64 || XTENSA || COMPILE_TEST
>   	help
>   	  Say yes here to select Cadence I2C Host Controller. This controller is
>   	  e.g. used by Xilinx Zynq.

Acked-by: Michal Simek <michal.simek@xilinx.com>

Thanks,
Michal
diff mbox series

Patch

diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 42da31c1ab70..bad2fadc94a3 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -488,7 +488,7 @@  config I2C_BRCMSTB
 
 config I2C_CADENCE
 	tristate "Cadence I2C Controller"
-	depends on ARCH_ZYNQ || ARM64 || XTENSA
+	depends on ARCH_ZYNQ || ARM64 || XTENSA || COMPILE_TEST
 	help
 	  Say yes here to select Cadence I2C Host Controller. This controller is
 	  e.g. used by Xilinx Zynq.