Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
#include <asm/uaccess.h>
#include <linux/slab.h>
-int reg_proc_write(struct file *file, const char __user *buff, size_t count, loff_t *offp)
+ssize_t reg_proc_write(struct file *file, const char __user *buff, size_t count, loff_t *offp)
{
int ret = -1, i = 0;
u32 read_val = 0;
.read = seq_read,
};
-int reg_proc_write1(struct file *file, const char __user *buff, size_t count, loff_t *offp)
+ssize_t reg_proc_write1(struct file *file, const char __user *buff, size_t count, loff_t *offp)
{
int ret = -1, i = 0;
u32 read_val = 0;