i2c: Make I2C_ATR invisible
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 15 Aug 2023 15:29:11 +0000 (17:29 +0200)
committerWolfram Sang <wsa@kernel.org>
Wed, 13 Sep 2023 08:56:00 +0000 (10:56 +0200)
I2C Address Translator (ATR) support is not a stand-alone driver, but a
library.  All of its users select I2C_ATR.  Hence there is no need for
the user to enable this symbol manually, except when compile-testing.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/Kconfig

index c6d1a34..9388823 100644 (file)
@@ -72,7 +72,7 @@ config I2C_MUX
 source "drivers/i2c/muxes/Kconfig"
 
 config I2C_ATR
-       tristate "I2C Address Translator (ATR) support"
+       tristate "I2C Address Translator (ATR) support" if COMPILE_TEST
        help
          Enable support for I2C Address Translator (ATR) chips.