From: Geert Uytterhoeven Date: Tue, 23 May 2023 15:10:59 +0000 (+0200) Subject: HID: uclogic: Modular KUnit tests should not depend on KUNIT=y X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=49904a0ebf23b15aad288a10f5354e7cd8193121;p=linux.git HID: uclogic: Modular KUnit tests should not depend on KUNIT=y While KUnit tests that cannot be built as a loadable module must depend on "KUNIT=y", this is not true for modular tests, where it adds an unnecessary limitation. Fix this by relaxing the dependency to "KUNIT". Fixes: 08809e482a1c44d9 ("HID: uclogic: KUnit best practices and naming conventions") Signed-off-by: Geert Uytterhoeven Reviewed-by: David Gow Reviewed-by: José Expósito Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 4ce012f83253e..b977450cac752 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig @@ -1285,7 +1285,7 @@ config HID_MCP2221 config HID_KUNIT_TEST tristate "KUnit tests for HID" if !KUNIT_ALL_TESTS - depends on KUNIT=y + depends on KUNIT depends on HID_BATTERY_STRENGTH depends on HID_UCLOGIC default KUNIT_ALL_TESTS