Searched refs:ds1305 (Results 1 – 3 of 3) sorted by relevance
84 struct ds1305 { struct141 struct ds1305 *ds1305 = dev_get_drvdata(dev); in ds1305_alarm_irq_enable() local146 buf[1] = ds1305->ctrl[0]; in ds1305_alarm_irq_enable()149 if (ds1305->ctrl[0] & DS1305_AEI0) in ds1305_alarm_irq_enable()157 err = spi_write_then_read(ds1305->spi, buf, sizeof(buf), NULL, 0); in ds1305_alarm_irq_enable()159 ds1305->ctrl[0] = buf[1]; in ds1305_alarm_irq_enable()172 struct ds1305 *ds1305 = dev_get_drvdata(dev); in ds1305_get_time() local180 status = spi_write_then_read(ds1305->spi, &addr, sizeof(addr), in ds1305_get_time()207 struct ds1305 *ds1305 = dev_get_drvdata(dev); in ds1305_set_time() local222 *bp++ = hour2bcd(ds1305->hr12, time->tm_hour); in ds1305_set_time()[all …]
54 obj-$(CONFIG_RTC_DRV_DS1305) += rtc-ds1305.o
755 will be called rtc-ds1305.