Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Michał Mirosław and committed by
Lee Jones
da7d203f a4b9be29

+2 -2
+2 -2
drivers/mfd/tps65911-comparator.c
··· 69 69 return -EINVAL; 70 70 71 71 val = index << 1; 72 - ret = tps65910_reg_write(tps65910, tps_comp.reg, val); 72 + ret = regmap_write(tps65910->regmap, tps_comp.reg, val); 73 73 74 74 return ret; 75 75 } ··· 80 80 unsigned int val; 81 81 int ret; 82 82 83 - ret = tps65910_reg_read(tps65910, tps_comp.reg, &val); 83 + ret = regmap_read(tps65910->regmap, tps_comp.reg, &val); 84 84 if (ret < 0) 85 85 return ret; 86 86