diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-04-15 17:44:18 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-05-09 08:20:45 +0100 |
commit | 0e10d549f6eebd0a26bf075309b6fb947f4c1cb2 (patch) | |
tree | 152926c1b28d17d16accceb10f263002c4dd0d43 /drivers/mfd | |
parent | f83c218c1705a0d38fb9791bdee268c4092a37cb (diff) | |
download | linux-0e10d549f6eebd0a26bf075309b6fb947f4c1cb2.tar.bz2 |
mfd: wm8400-core: Delete wm8400_reg_read()
There was a static checker warning in wm8400_reg_read() because we were
returning u16 and that can't hold the negative error codes. The
function isn't used, so let's just delete it.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/wm8400-core.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/mfd/wm8400-core.c b/drivers/mfd/wm8400-core.c index 9fd823049f90..81667762c3ad 100644 --- a/drivers/mfd/wm8400-core.c +++ b/drivers/mfd/wm8400-core.c @@ -35,27 +35,6 @@ static bool wm8400_volatile(struct device *dev, unsigned int reg) } } -/** - * wm8400_reg_read - Single register read - * - * @wm8400: Pointer to wm8400 control structure - * @reg: Register to read - * - * @return Read value - */ -u16 wm8400_reg_read(struct wm8400 *wm8400, u8 reg) -{ - unsigned int val; - int ret; - - ret = regmap_read(wm8400->regmap, reg, &val); - if (ret < 0) - return ret; - - return val; -} -EXPORT_SYMBOL_GPL(wm8400_reg_read); - int wm8400_block_read(struct wm8400 *wm8400, u8 reg, int count, u16 *data) { return regmap_bulk_read(wm8400->regmap, reg, data, count); |