rtc: Add DM support to ds3231
authorChuanhua Han <chuanhua.han@nxp.com>
Fri, 21 Jun 2019 08:21:53 +0000 (16:21 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 18 Jul 2019 15:31:23 +0000 (11:31 -0400)
commit55f2bc7dd655b6c26cd5fd211a086406416510a6
treed19397aedae99124462079f6c852d6fe9be867a1
parent5b123e010954d8f6ef24dd0cb1a8cbe1d7d53851
rtc: Add DM support to ds3231

Add an implementation of the ds3231 driver that uses the driver
model i2c APIs.

Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
drivers/rtc/ds3231.c