]> www.infradead.org Git - users/dwmw2/linux.git/commit
rtc: rzn1: reduce register access
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 22 Nov 2024 10:14:48 +0000 (11:14 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 25 Nov 2024 22:32:50 +0000 (23:32 +0100)
commit3ed345c948ef6ccd0f5dc85c5b6731593b4591f7
tree7b596d3b43e5ba621b1725091694f0902d1de420
parent692f983b2dc933f9c4f6255dc0a5f3df42110a2a
rtc: rzn1: reduce register access

This RTC has special 32bit registers which return multiple of the same
8bit registers at once. Use these to minimize register access. Also, do
the to/from BCD conversions right away, so 'tm' always contains values
as described in time.h.

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