Home
last modified time | relevance | path

Searched refs:RV3028_SEC (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-rv3028.c23 #define RV3028_SEC 0x00 macro
319 ret = regmap_bulk_read(rv3028->regmap, RV3028_SEC, date, sizeof(date)); in rv3028_get_time()
323 tm->tm_sec = bcd2bin(date[RV3028_SEC] & 0x7f); in rv3028_get_time()
340 date[RV3028_SEC] = bin2bcd(tm->tm_sec); in rv3028_set_time()
352 ret = regmap_bulk_write(rv3028->regmap, RV3028_SEC, date, in rv3028_set_time()
/kernel/linux/linux-6.6/drivers/rtc/
H A Drtc-rv3028.c24 #define RV3028_SEC 0x00 macro
321 ret = regmap_bulk_read(rv3028->regmap, RV3028_SEC, date, sizeof(date)); in rv3028_get_time()
325 tm->tm_sec = bcd2bin(date[RV3028_SEC] & 0x7f); in rv3028_get_time()
342 date[RV3028_SEC] = bin2bcd(tm->tm_sec); in rv3028_set_time()
354 ret = regmap_bulk_write(rv3028->regmap, RV3028_SEC, date, in rv3028_set_time()

Completed in 4 milliseconds