[PATCH 5/5] MFD AB3100 fix build warning

From: Linus Walleij
Date: Thu Aug 13 2009 - 05:51:31 EST


This fixes a build warning in the AB3100 driver reported by
Stephen Rothwell and Dann Frazier due to a mismatched prototype
in the ab3100_get_set_reg() file operation callback.

Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxxxxxx>
---
drivers/mfd/ab3100-core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/ab3100-core.c b/drivers/mfd/ab3100-core.c
index 16675f7..098e825 100644
--- a/drivers/mfd/ab3100-core.c
+++ b/drivers/mfd/ab3100-core.c
@@ -470,7 +470,7 @@ static int ab3100_get_set_reg_open_file(struct inode *inode, struct file *file)
return 0;
}

-static int ab3100_get_set_reg(struct file *file,
+static ssize_t ab3100_get_set_reg(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{
--
1.6.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/