Skip to content

Commit 73e65c4

Browse files
jhovoldWolfram Sang
authored andcommitted
i2c: tegra: enable compile testing on all archs
Commit 4a2d5f6 ("i2c: Enable compile testing for more drivers") enabled compile testing of the Tegra i2c driver only for architectures that explicitly provide readsX() and writesX(). This limitation appears to have been too restrictive since the generic implementation of these primitives added by commit 9ab3a7a ("asm-generic/io.h: Implement generic {read,write}s*()") predates the commit in question. Allow compile testing of the driver on all architectures. Cc: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
1 parent 58ea47a commit 73e65c4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/i2c/busses/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,8 +1211,7 @@ config I2C_SYNQUACER
12111211

12121212
config I2C_TEGRA
12131213
tristate "NVIDIA Tegra internal I2C controller"
1214-
depends on ARCH_TEGRA || (COMPILE_TEST && (ARC || ARM || ARM64 || M68K || RISCV || SUPERH || SPARC))
1215-
# COMPILE_TEST needs architectures with readsX()/writesX() primitives
1214+
depends on ARCH_TEGRA || COMPILE_TEST
12161215
help
12171216
If you say yes to this option, support will be included for the
12181217
I2C controller embedded in NVIDIA Tegra SOCs

0 commit comments

Comments
 (0)