Skip to content

Commit b02c964

Browse files
rtc: move RTC_LIB_KUNIT_TEST to proper location
Move RTC_LIB_KUNIT_TEST under RTC_LIB so it is clear in the menu this is part of the RTC subsystem. Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5546e3d commit b02c964

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

drivers/rtc/Kconfig

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@ config RTC_MC146818_LIB
1010
bool
1111
select RTC_LIB
1212

13-
config RTC_LIB_KUNIT_TEST
14-
tristate "KUnit test for RTC lib functions" if !KUNIT_ALL_TESTS
15-
depends on KUNIT
16-
default KUNIT_ALL_TESTS
17-
select RTC_LIB
18-
help
19-
Enable this option to test RTC library functions.
20-
21-
If unsure, say N.
22-
2313
menuconfig RTC_CLASS
2414
bool "Real Time Clock"
2515
default n
@@ -85,6 +75,15 @@ config RTC_DEBUG
8575
Say yes here to enable debugging support in the RTC framework
8676
and individual RTC drivers.
8777

78+
config RTC_LIB_KUNIT_TEST
79+
tristate "KUnit test for RTC lib functions" if !KUNIT_ALL_TESTS
80+
depends on KUNIT
81+
default KUNIT_ALL_TESTS
82+
help
83+
Enable this option to test RTC library functions.
84+
85+
If unsure, say N.
86+
8887
config RTC_NVMEM
8988
bool "RTC non volatile storage support"
9089
select NVMEM

drivers/rtc/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ rtc-core-$(CONFIG_RTC_INTF_DEV) += dev.o
1515
rtc-core-$(CONFIG_RTC_INTF_PROC) += proc.o
1616
rtc-core-$(CONFIG_RTC_INTF_SYSFS) += sysfs.o
1717

18+
obj-$(CONFIG_RTC_LIB_KUNIT_TEST) += lib_test.o
19+
1820
# Keep the list ordered.
1921

2022
obj-$(CONFIG_RTC_DRV_88PM80X) += rtc-88pm80x.o
@@ -178,4 +180,3 @@ obj-$(CONFIG_RTC_DRV_WM8350) += rtc-wm8350.o
178180
obj-$(CONFIG_RTC_DRV_X1205) += rtc-x1205.o
179181
obj-$(CONFIG_RTC_DRV_XGENE) += rtc-xgene.o
180182
obj-$(CONFIG_RTC_DRV_ZYNQMP) += rtc-zynqmp.o
181-
obj-$(CONFIG_RTC_LIB_KUNIT_TEST) += lib_test.o

0 commit comments

Comments
 (0)