aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2016-09-19 13:09:02 +0530
committerLee Jones <lee.jones@linaro.org>2016-10-26 10:30:02 +0100
commit0aced355757ddc150f78a6bf4f8d885bd4eaf0e2 (patch)
tree2fdeaef6823af7af287d4484fae7230c18e986d1 /drivers/gpio
parentLinux 4.9-rc1 (diff)
downloadlinux-dev-0aced355757ddc150f78a6bf4f8d885bd4eaf0e2.tar.xz
linux-dev-0aced355757ddc150f78a6bf4f8d885bd4eaf0e2.zip
mfd: tps65218: Remove redundant read wrapper
Currently read directly calls the repmap read function. Hence remove the redundant wrapper and use regmap read wherever needed. Signed-off-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-tps65218.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-tps65218.c b/drivers/gpio/gpio-tps65218.c
index d779307a9685..46e6dcc089cb 100644
--- a/drivers/gpio/gpio-tps65218.c
+++ b/drivers/gpio/gpio-tps65218.c
@@ -16,6 +16,7 @@
#include <linux/errno.h>
#include <linux/gpio/driver.h>
#include <linux/platform_device.h>
+#include <linux/regmap.h>
#include <linux/mfd/tps65218.h>
struct tps65218_gpio {
@@ -30,7 +31,7 @@ static int tps65218_gpio_get(struct gpio_chip *gc, unsigned offset)
unsigned int val;
int ret;
- ret = tps65218_reg_read(tps65218, TPS65218_REG_ENABLE2, &val);
+ ret = regmap_read(tps65218->regmap, TPS65218_REG_ENABLE2, &val);
if (ret)
return ret;