]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtc: test: Also test time and wday outcome of rtc_time64_to_tm()
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 28 Apr 2025 10:06:50 +0000 (12:06 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 1 Jun 2025 22:10:18 +0000 (00:10 +0200)
commitda62b49830f83d1c80bfa1f2208db0cc6c19a1f9
tree0262e8885f75da7112a8dac03a0f08e35e647a02
parent46351921cbe11403a4fcab00e76fa03d99a7aef2
rtc: test: Also test time and wday outcome of rtc_time64_to_tm()

To cover calculation of the time and wday in the rtc kunit test also check
tm_hour, tm_min, tm_sec and tm_wday of the rtc_time calculated by
rtc_time64_to_tm().

There are no surprises, the two tests making use of
rtc_time64_to_tm_test_date_range() continue to succeed.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
Link: https://lore.kernel.org/r/20250428-enable-rtc-v4-4-2b2f7e3f9349@baylibre.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/lib_test.c