rtc: ds1685: add indirect access method and remove plat_read/plat_write
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Mon, 14 Oct 2019 21:46:21 +0000 (23:46 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 16 Oct 2019 08:39:00 +0000 (10:39 +0200)
commit299b610117a4145dfe15963f0ea037ab319ce531
tree1fb468c08bd358b879ca13210da5ebcf60d43bac
parentaf818031f4637b0e8d106fcc9023f1c22c44e13a
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: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Acked-by: Joshua Kinard <kumba@gentoo.org>
Reviewed-by: Joshua Kinard <kumba@gentoo.org>
Link: https://lore.kernel.org/r/20191014214621.25257-1-tbogendoerfer@suse.de
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
arch/mips/sgi-ip32/ip32-platform.c
drivers/rtc/rtc-ds1685.c
include/linux/rtc/ds1685.h