2020-03-07 13:38:49

by Anson Huang

[permalink] [raw]
Subject: [PATCH] gpio: mxc: Add COMPILE_TEST support for GPIO_MXC

Add COMPILE_TEST support to GPIO_MXC driver for better compile
testing coverage.

Signed-off-by: Anson Huang <[email protected]>
---
drivers/gpio/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index b8013cf..b411226 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -394,7 +394,7 @@ config GPIO_MVEBU

config GPIO_MXC
def_bool y
- depends on ARCH_MXC
+ depends on ARCH_MXC || COMPILE_TEST
select GPIO_GENERIC
select GENERIC_IRQ_CHIP

--
2.7.4


2020-03-11 12:36:41

by Bartosz Golaszewski

[permalink] [raw]
Subject: Re: [PATCH] gpio: mxc: Add COMPILE_TEST support for GPIO_MXC

sob., 7 mar 2020 o 14:38 Anson Huang <[email protected]> napisaƂ(a):
>
> Add COMPILE_TEST support to GPIO_MXC driver for better compile
> testing coverage.
>
> Signed-off-by: Anson Huang <[email protected]>
> ---
> drivers/gpio/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
> index b8013cf..b411226 100644
> --- a/drivers/gpio/Kconfig
> +++ b/drivers/gpio/Kconfig
> @@ -394,7 +394,7 @@ config GPIO_MVEBU
>
> config GPIO_MXC
> def_bool y
> - depends on ARCH_MXC
> + depends on ARCH_MXC || COMPILE_TEST
> select GPIO_GENERIC
> select GENERIC_IRQ_CHIP
>
> --
> 2.7.4
>

Patch applied, thanks!

Bartosz