Skip to content
Commit 299b6101 authored by Thomas Bogendoerfer's avatar Thomas Bogendoerfer Committed by Alexandre Belloni
Browse files

rtc: ds1685: add indirect access method and remove plat_read/plat_write



SGI Octane (IP30) doesn't have RTC register directly mapped into CPU
address space, but accesses RTC registers with an address and data
register.  This is now supported by additional access functions, which
are selected by a new field in platform data. Removed plat_read/plat_write
since there is no user and their usage could introduce lifetime issue,
when functions are placed in different modules.

Signed-off-by: default avatarThomas Bogendoerfer <tbogendoerfer@suse.de>
Acked-by: default avatarJoshua Kinard <kumba@gentoo.org>
Reviewed-by: default avatarJoshua Kinard <kumba@gentoo.org>
Link: https://lore.kernel.org/r/20191014214621.25257-1-tbogendoerfer@suse.de


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