Lines Matching refs:bd_rtc
238 struct bd70528_rtc *bd_rtc; in bd70528_probe() local
247 bd_rtc = devm_kzalloc(&pdev->dev, sizeof(*bd_rtc), GFP_KERNEL); in bd70528_probe()
248 if (!bd_rtc) in bd70528_probe()
251 bd_rtc->regmap = dev_get_regmap(pdev->dev.parent, NULL); in bd70528_probe()
252 if (!bd_rtc->regmap) { in bd70528_probe()
257 bd_rtc->dev = &pdev->dev; in bd70528_probe()
262 bd_rtc->reg_time_start = BD71815_REG_RTC_START; in bd70528_probe()
274 bd_rtc->bd718xx_alm_block_start = BD71815_REG_RTC_ALM_START; in bd70528_probe()
278 bd_rtc->reg_time_start = BD71828_REG_RTC_START; in bd70528_probe()
279 bd_rtc->bd718xx_alm_block_start = BD71828_REG_RTC_ALM_START; in bd70528_probe()
283 bd_rtc->reg_time_start = BD72720_REG_RTC_START; in bd70528_probe()
284 bd_rtc->bd718xx_alm_block_start = BD72720_REG_RTC_ALM_START; in bd70528_probe()
297 platform_set_drvdata(pdev, bd_rtc); in bd70528_probe()
299 ret = regmap_read(bd_rtc->regmap, hour_reg, &hr); in bd70528_probe()