aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2009-06-23 04:48:36 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2009-09-17 03:46:42 -0400
commitdfc3aa7221f50bf3d05c67b826414ab290b95c46 (patch)
tree92d62a3bfdb138aa6f914b51279f97c2c4d027cd
parentab86e5765d41a5eb4239a1c04d613db87bea5ed8 (diff)
mfd: fix ab3100 warning on x86_64
The file_operations write prototype should return a ssize_t. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r--drivers/mfd/ab3100-core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/ab3100-core.c b/drivers/mfd/ab3100-core.c
index 13e7d7bfe85f..8ff10cb77cac 100644
--- a/drivers/mfd/ab3100-core.c
+++ b/drivers/mfd/ab3100-core.c
@@ -465,14 +465,14 @@ static int ab3100_get_set_reg_open_file(struct inode *inode, struct file *file)
465 return 0; 465 return 0;
466} 466}
467 467
468static int ab3100_get_set_reg(struct file *file, 468static ssize_t ab3100_get_set_reg(struct file *file,
469 const char __user *user_buf, 469 const char __user *user_buf,
470 size_t count, loff_t *ppos) 470 size_t count, loff_t *ppos)
471{ 471{
472 struct ab3100_get_set_reg_priv *priv = file->private_data; 472 struct ab3100_get_set_reg_priv *priv = file->private_data;
473 struct ab3100 *ab3100 = priv->ab3100; 473 struct ab3100 *ab3100 = priv->ab3100;
474 char buf[32]; 474 char buf[32];
475 int buf_size; 475 ssize_t buf_size;
476 int regp; 476 int regp;
477 unsigned long user_reg; 477 unsigned long user_reg;
478 int err; 478 int err;