Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213481
b: refs/heads/master
c: a958981
h: refs/heads/master
i:
  213479: d8b6ce7
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Oct 22, 2010
1 parent a09a48a commit a77ed3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: de838a93cbf35671f890360b886a5c2a8a5d1aa4
refs/heads/master: a95898114059e1038f3f7ee9bd2e43aefa62709a
6 changes: 6 additions & 0 deletions trunk/drivers/serial/mfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ static ssize_t port_show_regs(struct file *file, char __user *user_buf,
len += snprintf(buf + len, HSU_REGS_BUFSIZE - len,
"DIV: \t\t0x%08x\n", serial_in(up, UART_DIV));

if (len > HSU_REGS_BUFSIZE)
len = HSU_REGS_BUFSIZE;

ret = simple_read_from_buffer(user_buf, count, ppos, buf, len);
kfree(buf);
return ret;
Expand Down Expand Up @@ -219,6 +222,9 @@ static ssize_t dma_show_regs(struct file *file, char __user *user_buf,
len += snprintf(buf + len, HSU_REGS_BUFSIZE - len,
"D0TSR: \t\t0x%08x\n", chan_readl(chan, HSU_CH_D3TSR));

if (len > HSU_REGS_BUFSIZE)
len = HSU_REGS_BUFSIZE;

ret = simple_read_from_buffer(user_buf, count, ppos, buf, len);
kfree(buf);
return ret;
Expand Down

0 comments on commit a77ed3d

Please sign in to comment.