Commit 6c28f096 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: es1: fix build warning for apb1_log_enable_write

It's "const char __user *buf", not "char __user *buf".

'make check' is your friend.
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 59e33444
......@@ -579,7 +579,7 @@ static ssize_t apb1_log_enable_read(struct file *f, char __user *buf,
return simple_read_from_buffer(buf, count, ppos, tmp_buf, 3);
}
static ssize_t apb1_log_enable_write(struct file *f, char __user *buf,
static ssize_t apb1_log_enable_write(struct file *f, const char __user *buf,
size_t count, loff_t *ppos)
{
int enable;
......
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