diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2020-09-27 01:59:17 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-11-19 09:34:22 +0100 |
commit | da7d203f46c00cfb6070be7fbf3cfce4e2c88135 (patch) | |
tree | af4cde8d80ef49499feda0649f609eab2ec241df | |
parent | mfd: qcom-spmi-pmic: Add support for PM660/PM660L (diff) | |
download | linux-da7d203f46c00cfb6070be7fbf3cfce4e2c88135.tar.xz linux-da7d203f46c00cfb6070be7fbf3cfce4e2c88135.zip |
mfd: tps65911-comparator: Use regmap accessors
Use regmap accessors directly for register manipulation - removing
one layer of abstraction.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/tps65911-comparator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/tps65911-comparator.c b/drivers/mfd/tps65911-comparator.c index 2334cd61c98d..8f4210075913 100644 --- a/drivers/mfd/tps65911-comparator.c +++ b/drivers/mfd/tps65911-comparator.c @@ -69,7 +69,7 @@ static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage) return -EINVAL; val = index << 1; - ret = tps65910_reg_write(tps65910, tps_comp.reg, val); + ret = regmap_write(tps65910->regmap, tps_comp.reg, val); return ret; } @@ -80,7 +80,7 @@ static int comp_threshold_get(struct tps65910 *tps65910, int id) unsigned int val; int ret; - ret = tps65910_reg_read(tps65910, tps_comp.reg, &val); + ret = regmap_read(tps65910->regmap, tps_comp.reg, &val); if (ret < 0) return ret; |