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;