]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
can: tscan1: CAN_TSCAN1 can depend on PC104
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 21 Jul 2025 00:28:23 +0000 (17:28 -0700)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 25 Jul 2025 11:08:52 +0000 (13:08 +0200)
Add a dependency on PC104 to limit (restrict) this driver kconfig
prompt to kernel configs that have PC104 set.

Add COMPILE_TEST as a possibility for more complete build coverage.
I tested this build config on x86_64 5 times without problems.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://patch.msgid.link/20250721002823.3548945-1-rdunlap@infradead.org
[mkl: fix conflict, remove Fixes: tag]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/sja1000/Kconfig

index ba16d7bc09ef7e9551d9ce200f0febd19bf11eca..e061e35769bfbaf277ffb6df6b7d03b2794e2b00 100644 (file)
@@ -105,7 +105,7 @@ config CAN_SJA1000_PLATFORM
 
 config CAN_TSCAN1
        tristate "TS-CAN1 PC104 boards"
-       depends on ISA || (COMPILE_TEST && HAS_IOPORT)
+       depends on (ISA && PC104) || (COMPILE_TEST && HAS_IOPORT)
        help
          This driver is for Technologic Systems' TSCAN-1 PC104 boards.
          https://www.embeddedts.com/products/TS-CAN1