Lines Matching refs:dev
59 rs5c348_rtc_set_time(struct device *dev, struct rtc_time *tm) in rs5c348_rtc_set_time() argument
61 struct spi_device *spi = to_spi_device(dev); in rs5c348_rtc_set_time()
62 struct rs5c348_plat_data *pdata = dev_get_platdata(&spi->dev); in rs5c348_rtc_set_time()
106 rs5c348_rtc_read_time(struct device *dev, struct rtc_time *tm) in rs5c348_rtc_read_time() argument
108 struct spi_device *spi = to_spi_device(dev); in rs5c348_rtc_read_time()
109 struct rs5c348_plat_data *pdata = dev_get_platdata(&spi->dev); in rs5c348_rtc_read_time()
117 dev_warn(&spi->dev, "voltage-low detected.\n"); in rs5c348_rtc_read_time()
119 dev_warn(&spi->dev, "oscillator-stop detected.\n"); in rs5c348_rtc_read_time()
170 pdata = devm_kzalloc(&spi->dev, sizeof(struct rs5c348_plat_data), in rs5c348_probe()
174 spi->dev.platform_data = pdata; in rs5c348_probe()
179 dev_err(&spi->dev, "not found.\n"); in rs5c348_probe()
183 dev_info(&spi->dev, "spiclk %u KHz.\n", in rs5c348_probe()
192 rtc = devm_rtc_allocate_device(&spi->dev); in rs5c348_probe()