rfkill-bt: fix compilation warning
[firefly-linux-kernel-4.4.55.git] / 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;