Searched refs:M41T94_REG_SECONDS (Results 1 – 2 of 2) sorted by relevance
15 #define M41T94_REG_SECONDS 0x01 macro40 buf[0] = 0x80 | M41T94_REG_SECONDS; /* write time + date */ in m41t94_set_time()41 buf[M41T94_REG_SECONDS] = bin2bcd(tm->tm_sec); in m41t94_set_time()73 ret = spi_w8r8(spi, M41T94_REG_SECONDS); in m41t94_read_time()77 buf[0] = 0x80 | M41T94_REG_SECONDS; in m41t94_read_time()82 tm->tm_sec = bcd2bin(spi_w8r8(spi, M41T94_REG_SECONDS)); in m41t94_read_time()117 res = spi_w8r8(spi, M41T94_REG_SECONDS); in m41t94_probe()
22 #define M41T94_REG_SECONDS 0x01 macro50 buf[0] = 0x80 | M41T94_REG_SECONDS; /* write time + date */ in rtc_set()51 buf[M41T94_REG_SECONDS] = bin2bcd(tm->tm_sec); in rtc_set()93 ret = spi_w8r8(slave, M41T94_REG_SECONDS); in rtc_get()97 buf[0] = 0x80 | M41T94_REG_SECONDS; in rtc_get()102 tm->tm_sec = bcd2bin(spi_w8r8(slave, M41T94_REG_SECONDS)); in rtc_get()