Searched refs:sr_thermal (Results 1 – 1 of 1) sorted by relevance
24 struct sr_thermal *priv;27 struct sr_thermal { struct36 struct sr_thermal *sr_thermal = tmon->priv; in sr_get_temp() argument38 *temp = readl(sr_thermal->regs + SR_TMON_TEMP_BASE(tmon->tmon_id)); in sr_get_temp()51 struct sr_thermal *sr_thermal; in sr_thermal_probe() local58 sr_thermal = devm_kzalloc(dev, sizeof(*sr_thermal), GFP_KERNEL); in sr_thermal_probe()59 if (!sr_thermal) in sr_thermal_probe()66 sr_thermal->regs = (void __iomem *)devm_memremap(&pdev->dev, res->start, in sr_thermal_probe()69 if (IS_ERR(sr_thermal->regs)) { in sr_thermal_probe()71 return PTR_ERR(sr_thermal->regs); in sr_thermal_probe()[all …]