Lines Matching refs:tps65910
59 static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage) in comp_threshold_set() argument
81 ret = tps65910->write(tps65910, tps_comp.reg, 1, &val); in comp_threshold_set()
86 static int comp_threshold_get(struct tps65910 *tps65910, int id) in comp_threshold_get() argument
95 ret = tps65910->read(tps65910, tps_comp.reg, 1, &val); in comp_threshold_get()
106 struct tps65910 *tps65910 = dev_get_drvdata(dev->parent); in comp_threshold_show() local
117 uVolt = comp_threshold_get(tps65910, id); in comp_threshold_show()
127 struct tps65910 *tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65911_comparator_probe() local
128 struct tps65910_board *pdata = dev_get_platdata(tps65910->dev); in tps65911_comparator_probe()
131 ret = comp_threshold_set(tps65910, COMP1, pdata->vmbch_threshold); in tps65911_comparator_probe()
137 ret = comp_threshold_set(tps65910, COMP2, pdata->vmbch2_threshold); in tps65911_comparator_probe()
157 struct tps65910 *tps65910; in tps65911_comparator_remove() local
159 tps65910 = dev_get_drvdata(pdev->dev.parent); in tps65911_comparator_remove()