]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtc: rzn1: drop superfluous wday calculation
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 22 Nov 2024 10:14:47 +0000 (11:14 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 25 Nov 2024 22:32:50 +0000 (23:32 +0100)
commit692f983b2dc933f9c4f6255dc0a5f3df42110a2a
treec0b909f261c9bdba24246cf42b88ad34f87c41e7
parent1ec371bab200de8510c893cd22865eb517577e83
rtc: rzn1: drop superfluous wday calculation

The week register simply counts from 0 to 6 where the numbers do not
even represent a specific weekday. So we can adopt 'tm_wday' numbering
of the RTC core without converting it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20241122101448.4374-2-wsa+renesas@sang-engineering.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rzn1.c