]> Gentwo Git Trees - linux/.git/commitdiff
regulator: Let raspberrypi drivers depend on ARM
authorJean Delvare <jdelvare@suse.de>
Mon, 27 Oct 2025 12:22:19 +0000 (13:22 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Oct 2025 12:47:01 +0000 (12:47 +0000)
The Raspberry Pi drivers aren't useful on other architectures, so
only offer them on ARM and ARM64, except for build testing purposes.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Link: https://patch.msgid.link/20251027132219.2f3274f0@endymion
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig

index d84f3d054c59d86d91d859808aa73a3b609d16d0..403890a76070072a7fceebc4f25a84345c757bbb 100644 (file)
@@ -1181,6 +1181,7 @@ config REGULATOR_RAA215300
 
 config REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY
        tristate "Raspberry Pi 7-inch touchscreen panel ATTINY regulator"
+       depends on ARM || ARM64 || COMPILE_TEST
        depends on BACKLIGHT_CLASS_DEVICE
        depends on I2C
        depends on OF_GPIO
@@ -1192,6 +1193,7 @@ config REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY
 
 config REGULATOR_RASPBERRYPI_TOUCHSCREEN_V2
        tristate "Raspberry Pi 7-inch touchscreen panel V2 regulator"
+       depends on ARM || ARM64 || COMPILE_TEST
        depends on GPIOLIB
        depends on I2C && OF
        select GPIO_REGMAP