diff mbox series

thermal: add COMPILE_TEST support for i.MX8MM

Message ID 1583509057-8197-1-git-send-email-Anson.Huang@nxp.com (mailing list archive)
State Not Applicable, archived
Headers show
Series thermal: add COMPILE_TEST support for i.MX8MM | expand

Commit Message

Anson Huang March 6, 2020, 3:37 p.m. UTC
Add COMPILE_TEST support to i.MX8MM thermal driver for better compile
testing coverage.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
 drivers/thermal/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Amit Kucheria March 7, 2020, 2:30 a.m. UTC | #1
On Fri, Mar 6, 2020 at 9:13 PM Anson Huang <Anson.Huang@nxp.com> wrote:
>
> Add COMPILE_TEST support to i.MX8MM thermal driver for better compile
> testing coverage.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>

Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>


> ---
>  drivers/thermal/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
> index 4d6753f..91af271 100644
> --- a/drivers/thermal/Kconfig
> +++ b/drivers/thermal/Kconfig
> @@ -265,7 +265,7 @@ config IMX_SC_THERMAL
>
>  config IMX8MM_THERMAL
>         tristate "Temperature sensor driver for Freescale i.MX8MM SoC"
> -       depends on ARCH_MXC
> +       depends on ARCH_MXC || COMPILE_TEST
>         depends on OF
>         help
>           Support for Thermal Monitoring Unit (TMU) found on Freescale i.MX8MM SoC.
> --
> 2.7.4
>
Daniel Lezcano March 12, 2020, 11:12 a.m. UTC | #2
On 06/03/2020 16:37, Anson Huang wrote:
> Add COMPILE_TEST support to i.MX8MM thermal driver for better compile
> testing coverage.
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---

Applied, thanks

>  drivers/thermal/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
> index 4d6753f..91af271 100644
> --- a/drivers/thermal/Kconfig
> +++ b/drivers/thermal/Kconfig
> @@ -265,7 +265,7 @@ config IMX_SC_THERMAL
>  
>  config IMX8MM_THERMAL
>  	tristate "Temperature sensor driver for Freescale i.MX8MM SoC"
> -	depends on ARCH_MXC
> +	depends on ARCH_MXC || COMPILE_TEST
>  	depends on OF
>  	help
>  	  Support for Thermal Monitoring Unit (TMU) found on Freescale i.MX8MM SoC.
>
diff mbox series

Patch

diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 4d6753f..91af271 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -265,7 +265,7 @@  config IMX_SC_THERMAL
 
 config IMX8MM_THERMAL
 	tristate "Temperature sensor driver for Freescale i.MX8MM SoC"
-	depends on ARCH_MXC
+	depends on ARCH_MXC || COMPILE_TEST
 	depends on OF
 	help
 	  Support for Thermal Monitoring Unit (TMU) found on Freescale i.MX8MM SoC.