diff mbox series

[01/24] hwmon: (abitguru{,3}) Enable build testing on !X86

Message ID 20230918085951.1234172-2-u.kleine-koenig@pengutronix.de (mailing list archive)
State Accepted
Headers show
Series hwmon: Convert to platform remove callback returning void | expand

Commit Message

Uwe Kleine-König Sept. 18, 2023, 8:59 a.m. UTC
The two drivers compile fine on arm64, powerpc, m68k and s390. So make
it possible to enable the drivers in the presence of COMPILE_TEST.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/hwmon/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Hans de Goede Sept. 18, 2023, 9:46 a.m. UTC | #1
Hi,

On 9/18/23 10:59, Uwe Kleine-König wrote:
> The two drivers compile fine on arm64, powerpc, m68k and s390. So make
> it possible to enable the drivers in the presence of COMPILE_TEST.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Thanks, patch looks good to me:

Reviewed-by: Hans de Goede <hdegoede@redhat.com>

Regards,

Hans


> ---
>  drivers/hwmon/Kconfig | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
> index ea390da7bc75..e36f58b01f2d 100644
> --- a/drivers/hwmon/Kconfig
> +++ b/drivers/hwmon/Kconfig
> @@ -40,7 +40,7 @@ comment "Native drivers"
>  
>  config SENSORS_ABITUGURU
>  	tristate "Abit uGuru (rev 1 & 2)"
> -	depends on X86 && DMI
> +	depends on (X86 && DMI) || COMPILE_TEST
>  	help
>  	  If you say yes here you get support for the sensor part of the first
>  	  and second revision of the Abit uGuru chip. The voltage and frequency
> @@ -55,7 +55,7 @@ config SENSORS_ABITUGURU
>  
>  config SENSORS_ABITUGURU3
>  	tristate "Abit uGuru (rev 3)"
> -	depends on X86 && DMI
> +	depends on (X86 && DMI) || COMPILE_TEST
>  	help
>  	  If you say yes here you get support for the sensor part of the
>  	  third revision of the Abit uGuru chip. Only reading the sensors
diff mbox series

Patch

diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index ea390da7bc75..e36f58b01f2d 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -40,7 +40,7 @@  comment "Native drivers"
 
 config SENSORS_ABITUGURU
 	tristate "Abit uGuru (rev 1 & 2)"
-	depends on X86 && DMI
+	depends on (X86 && DMI) || COMPILE_TEST
 	help
 	  If you say yes here you get support for the sensor part of the first
 	  and second revision of the Abit uGuru chip. The voltage and frequency
@@ -55,7 +55,7 @@  config SENSORS_ABITUGURU
 
 config SENSORS_ABITUGURU3
 	tristate "Abit uGuru (rev 3)"
-	depends on X86 && DMI
+	depends on (X86 && DMI) || COMPILE_TEST
 	help
 	  If you say yes here you get support for the sensor part of the
 	  third revision of the Abit uGuru chip. Only reading the sensors