aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap/regmap-debugfs.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-08-09 16:47:42 +0900
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-08-10 00:26:38 +0900
commitcb3c2dcfa34072b785cf292ca0b66494496572b9 (patch)
tree68798d8a3e217529e5f9904e291766319ca79b9e /drivers/base/regmap/regmap-debugfs.c
parent3d9ead7c06e51249a92eb710a892a66601bd7290 (diff)
downloadkernel_goldelico_gta04-cb3c2dcfa34072b785cf292ca0b66494496572b9.zip
kernel_goldelico_gta04-cb3c2dcfa34072b785cf292ca0b66494496572b9.tar.gz
kernel_goldelico_gta04-cb3c2dcfa34072b785cf292ca0b66494496572b9.tar.bz2
regmap: Fix type of field width specifiers for x86_64
x86_64 size_t is not an int but the printf format specifier for size_t should be an int. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'drivers/base/regmap/regmap-debugfs.c')
-rw-r--r--drivers/base/regmap/regmap-debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c
index 184b618..6e304a4 100644
--- a/drivers/base/regmap/regmap-debugfs.c
+++ b/drivers/base/regmap/regmap-debugfs.c
@@ -29,7 +29,7 @@ static int regmap_map_open_file(struct inode *inode, struct file *file)
static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{
- size_t reg_len, val_len, tot_len;
+ int reg_len, val_len, tot_len;
size_t buf_pos = 0;
loff_t p = 0;
ssize_t ret;