Lines Matching refs:tps65910
53 static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage) in comp_threshold_set() argument
72 ret = regmap_write(tps65910->regmap, tps_comp.reg, val); in comp_threshold_set()
77 static int comp_threshold_get(struct tps65910 *tps65910, int id) in comp_threshold_get() argument
83 ret = regmap_read(tps65910->regmap, tps_comp.reg, &val); in comp_threshold_get()
94 struct tps65910 *tps65910 = dev_get_drvdata(dev->parent); in comp_threshold_show() local
105 uVolt = comp_threshold_get(tps65910, id); in comp_threshold_show()
115 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65911_comparator_probe() local
116 struct tps65910_board *pdata = dev_get_platdata(tps65910->dev); in tps65911_comparator_probe()
119 ret = comp_threshold_set(tps65910, COMP1, pdata->vmbch_threshold); in tps65911_comparator_probe()
125 ret = comp_threshold_set(tps65910, COMP2, pdata->vmbch2_threshold); in tps65911_comparator_probe()
145 struct tps65910 *tps65910; in tps65911_comparator_remove() local
147 tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65911_comparator_remove()