Commit 49fd6f90 authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by Alexandre Belloni
Browse files

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: default avatarNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Acked-by: default avatarMaciej W. Rozycki <macro@orcam.me.uk>
Link: https://lore.kernel.org/r/20241007233618.1442937-1-nobuhiro1.iwamatsu@toshiba.co.jp


Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent b6cd7ade
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment