aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/wm8400-private.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-04-15 17:44:18 +0300
committerLee Jones <lee.jones@linaro.org>2016-05-09 08:20:45 +0100
commit0e10d549f6eebd0a26bf075309b6fb947f4c1cb2 (patch)
tree152926c1b28d17d16accceb10f263002c4dd0d43 /include/linux/mfd/wm8400-private.h
parentmfd: arizona: Update device ordering to allow clean driver removal (diff)
downloadlinux-dev-0e10d549f6eebd0a26bf075309b6fb947f4c1cb2.tar.xz
linux-dev-0e10d549f6eebd0a26bf075309b6fb947f4c1cb2.zip
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 'include/linux/mfd/wm8400-private.h')
-rw-r--r--include/linux/mfd/wm8400-private.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mfd/wm8400-private.h b/include/linux/mfd/wm8400-private.h
index 2de565b94d0c..4ee908f5b834 100644
--- a/include/linux/mfd/wm8400-private.h
+++ b/include/linux/mfd/wm8400-private.h
@@ -923,7 +923,6 @@ struct wm8400 {
#define WM8400_LINE_CMP_VTHD_SHIFT 0 /* LINE_CMP_VTHD - [3:0] */
#define WM8400_LINE_CMP_VTHD_WIDTH 4 /* LINE_CMP_VTHD - [3:0] */
-u16 wm8400_reg_read(struct wm8400 *wm8400, u8 reg);
int wm8400_block_read(struct wm8400 *wm8400, u8 reg, int count, u16 *data);
static inline int wm8400_set_bits(struct wm8400 *wm8400, u8 reg,