From 3e92dcec475b8b5c57f4265aa86dc1aab53f3d99 Mon Sep 17 00:00:00 2001 From: "Huang, Tao" Date: Mon, 4 May 2015 20:25:39 +0800 Subject: [PATCH] input: vtl_ts: fix compilation warning Signed-off-by: Huang, Tao --- drivers/input/touchscreen/vtl_ts/apk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/vtl_ts/apk.c b/drivers/input/touchscreen/vtl_ts/apk.c index 37624d663be3..72438cd44a84 100755 --- a/drivers/input/touchscreen/vtl_ts/apk.c +++ b/drivers/input/touchscreen/vtl_ts/apk.c @@ -79,7 +79,7 @@ static int apk_close(struct inode *inode, struct file *file) return 0; } -static int apk_write(struct file *file, const char __user *buff, size_t count, loff_t *offp) +static ssize_t apk_write(struct file *file, const char __user *buff, size_t count, loff_t *offp) { struct i2c_client *client = ts_object->driver->client; unsigned char frame_data[255] = {0}; @@ -130,7 +130,7 @@ static int apk_write(struct file *file, const char __user *buff, size_t count, l }break; } }else if(frame_data[0]==LINUX_SHELL){ - printk("CMD: %s,count = %d\n",frame_data,count); + printk("CMD: %s,count = %zu\n",frame_data,count); switch(frame_data[1]){ case SHELL_CHECKSUM_CMD :{ chip_get_checksum(client,&bin_checksum,&fw_checksum); @@ -164,7 +164,7 @@ static int apk_write(struct file *file, const char __user *buff, size_t count, l return count; } -static int apk_read(struct file *file, char __user *buff, size_t count, loff_t *offp) +static ssize_t apk_read(struct file *file, char __user *buff, size_t count, loff_t *offp) { struct i2c_client *client = ts_object->driver->client; unsigned char frame_data[255]; -- 2.34.1