rfkill-bt: fix compilation warning
authorHuang, Tao <huangtao@rock-chips.com>
Mon, 4 May 2015 13:03:48 +0000 (21:03 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 4 May 2015 13:03:48 +0000 (21:03 +0800)
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
net/rfkill/rfkill-bt.c

index 2386716f7a27967daf338fef9c1cb199734e7a44..a1a156c22efdabd1777a410f6ca9f7daafda0df5 100755 (executable)
@@ -422,26 +422,29 @@ static const struct rfkill_ops rfkill_rk_ops = {
 
 static struct proc_dir_entry *bluetooth_dir, *sleep_dir;
 
-static int bluesleep_read_proc_lpm(struct file *file, char __user *buffer, 
-                    size_t count, loff_t *data)
+static ssize_t bluesleep_read_proc_lpm(struct file *file, char __user *buffer,
+                                      size_t count, loff_t *data)
 {
     return sprintf(buffer, "unsupported to read\n");
 }
 
-static int bluesleep_write_proc_lpm(struct file *file, const char __user *buffer, 
-                    size_t count, loff_t *data)
+static ssize_t bluesleep_write_proc_lpm(struct file *file,
+                                       const char __user *buffer,
+                                       size_t count, loff_t *data)
 {
     return count;
 }
 
-static int bluesleep_read_proc_btwrite(struct file *file, char __user *buffer, 
-                    size_t count, loff_t *data)
+static ssize_t bluesleep_read_proc_btwrite(struct file *file,
+                                          char __user *buffer,
+                                          size_t count, loff_t *data)
 {
     return sprintf(buffer, "unsupported to read\n");
 }
 
-static int bluesleep_write_proc_btwrite(struct file *file, const char __user *buffer, 
-                    size_t count, loff_t *data)
+static ssize_t bluesleep_write_proc_btwrite(struct file *file,
+                                           const char __user *buffer,
+                                           size_t count, loff_t *data)
 {
     char b;