]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
rtc: rtc-mc146818-lib: Use is_leap_year instead of calculate leap years
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Mon, 7 Oct 2024 23:36:18 +0000 (08:36 +0900)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 10 Nov 2024 22:02:43 +0000 (23:02 +0100)
commit49fd6f907f4623fa029a24b21f667b99594438bd
tree2ff89e0a6ac4e8575884dcbaed0c883e3fe06b09
parentb6cd7adec0cf03f0aefc55676e71dd721cbc71a8
rtc: rtc-mc146818-lib: Use is_leap_year instead of calculate leap years

The is_leap_year() for determining leap year is provided in rtc lib.
This uses is_leap_year() instead of its own leap year determination
routine.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Acked-by: Maciej W. Rozycki <macro@orcam.me.uk>
Link: https://lore.kernel.org/r/20241007233618.1442937-1-nobuhiro1.iwamatsu@toshiba.co.jp
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-mc146818-lib.c