Commit cb3c2dcf authored by Mark Brown's avatar Mark Brown

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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
parent 3d9ead7c
...@@ -29,7 +29,7 @@ static int regmap_map_open_file(struct inode *inode, struct file *file) ...@@ -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, static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos) 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; size_t buf_pos = 0;
loff_t p = 0; loff_t p = 0;
ssize_t ret; ssize_t ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment