Re: [PATCH 5/5] rtc: renesas-rtca3: Factor out year decoding helper

From: Claudiu Beznea

Date: Tue Jun 02 2026 - 04:36:47 EST




On 5/6/26 19:49, Prabhakar wrote:
From: Lad Prabhakar<prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>

The logic to decode the year value from the hardware registers is
duplicated in both rtca3_read_time() and rtca3_read_alarm().

Introduce a helper rtca3_decode_year() to centralize this conversion.

Signed-off-by: Lad Prabhakar<prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>

Reviewed-by: Claudiu Beznea <claudiu.beznea.uj@xxxxxxxxxxxxxx>
Tested-by: Claudiu Beznea <claudiu.beznea.uj@xxxxxxxxxxxxxx> # on RZ/G3S