Home
last modified time | relevance | path

Searched refs:RV8803_SEC (Results 1 – 1 of 1) sorted by relevance

/drivers/rtc/
Drtc-rv8803.c22 #define RV8803_SEC 0x00 macro
205 ret = rv8803_read_regs(rv8803->client, RV8803_SEC, 7, date); in rv8803_get_time()
209 if ((date1[RV8803_SEC] & 0x7f) == bin2bcd(59)) { in rv8803_get_time()
210 ret = rv8803_read_regs(rv8803->client, RV8803_SEC, 7, date2); in rv8803_get_time()
214 if ((date2[RV8803_SEC] & 0x7f) != bin2bcd(59)) in rv8803_get_time()
218 tm->tm_sec = bcd2bin(date[RV8803_SEC] & 0x7f); in rv8803_get_time()
245 date[RV8803_SEC] = bin2bcd(tm->tm_sec); in rv8803_set_time()
253 ret = rv8803_write_regs(rv8803->client, RV8803_SEC, 7, date); in rv8803_set_time()