Searched refs:ds1305 (Results 1 – 3 of 3) sorted by relevance
88 struct ds1305 { struct145 struct ds1305 *ds1305 = dev_get_drvdata(dev); in ds1305_alarm_irq_enable() local150 buf[1] = ds1305->ctrl[0]; in ds1305_alarm_irq_enable()153 if (ds1305->ctrl[0] & DS1305_AEI0) in ds1305_alarm_irq_enable()161 err = spi_write_then_read(ds1305->spi, buf, sizeof buf, NULL, 0); in ds1305_alarm_irq_enable()163 ds1305->ctrl[0] = buf[1]; in ds1305_alarm_irq_enable()176 struct ds1305 *ds1305 = dev_get_drvdata(dev); in ds1305_get_time() local184 status = spi_write_then_read(ds1305->spi, &addr, sizeof addr, in ds1305_get_time()214 struct ds1305 *ds1305 = dev_get_drvdata(dev); in ds1305_set_time() local229 *bp++ = hour2bcd(ds1305->hr12, time->tm_hour); in ds1305_set_time()[all …]
40 obj-$(CONFIG_RTC_DRV_DS1305) += rtc-ds1305.o
523 will be called rtc-ds1305.