Quellcode durchsuchen

mfd: tps65911-comparator: Fix a build error

In 2012, we changed the tps65910 API and fixed most drivers but forgot
to update this one.

Fixes: 3f7e82759c69 ("mfd: Commonize tps65910 regmap access through header")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Dan Carpenter vor 7 Jahren
Ursprung
Commit
ac1886165c
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      drivers/mfd/tps65911-comparator.c

+ 3 - 3
drivers/mfd/tps65911-comparator.c

@@ -78,7 +78,7 @@ static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage)
 		return -EINVAL;
 		return -EINVAL;
 
 
 	val = index << 1;
 	val = index << 1;
-	ret = tps65910->write(tps65910, tps_comp.reg, 1, &val);
+	ret = tps65910_reg_write(tps65910, tps_comp.reg, val);
 
 
 	return ret;
 	return ret;
 }
 }
@@ -86,13 +86,13 @@ static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage)
 static int comp_threshold_get(struct tps65910 *tps65910, int id)
 static int comp_threshold_get(struct tps65910 *tps65910, int id)
 {
 {
 	struct comparator tps_comp = tps_comparators[id];
 	struct comparator tps_comp = tps_comparators[id];
+	unsigned int val;
 	int ret;
 	int ret;
-	u8 val;
 
 
 	if (id == COMP)
 	if (id == COMP)
 		return 0;
 		return 0;
 
 
-	ret = tps65910->read(tps65910, tps_comp.reg, 1, &val);
+	ret = tps65910_reg_read(tps65910, tps_comp.reg, &val);
 	if (ret < 0)
 	if (ret < 0)
 		return ret;
 		return ret;