From: Samuel Ortiz Date: Tue, 23 Jun 2009 08:48:36 +0000 (+0200) Subject: mfd: fix ab3100 warning on x86_64 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dfc3aa7221f50bf3d05c67b826414ab290b95c46;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git mfd: fix ab3100 warning on x86_64 The file_operations write prototype should return a ssize_t. Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/ab3100-core.c b/drivers/mfd/ab3100-core.c index 13e7d7bfe85..8ff10cb77ca 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) return 0; } -static int ab3100_get_set_reg(struct file *file, - const char __user *user_buf, - size_t count, loff_t *ppos) +static ssize_t ab3100_get_set_reg(struct file *file, + const char __user *user_buf, + size_t count, loff_t *ppos) { struct ab3100_get_set_reg_priv *priv = file->private_data; struct ab3100 *ab3100 = priv->ab3100; char buf[32]; - int buf_size; + ssize_t buf_size; int regp; unsigned long user_reg; int err;