Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248529
b: refs/heads/master
c: d2a1cfe
h: refs/heads/master
i:
  248527: be085f7
v: v3
  • Loading branch information
Jiri Kosina committed Mar 27, 2011
1 parent ced91b1 commit f78823d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ac065bf214bb6a7fb7536f2dde686d4694342801
refs/heads/master: d2a1cfebe38edc0bbac8f5cfbce062fe3d146d7a
16 changes: 8 additions & 8 deletions trunk/drivers/hid/hidraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ static ssize_t hidraw_read(struct file *file, char __user *buffer, size_t count,
return ret;
}

/* the first byte is expected to be a report number */
/* This function is to be called with the minors_lock mutex held */
/* The first byte is expected to be a report number.
* This function is to be called with the minors_lock mutex held */
static ssize_t hidraw_send_report(struct file *file, const char __user *buffer, size_t count, unsigned char report_type)
{
unsigned int minor = iminor(file->f_path.dentry->d_inode);
Expand Down Expand Up @@ -166,11 +166,11 @@ static ssize_t hidraw_write(struct file *file, const char __user *buffer, size_t


/* This function performs a Get_Report transfer over the control endpoint
per section 7.2.1 of the HID specification, version 1.1. The first byte
of buffer is the report number to request, or 0x0 if the defice does not
use numbered reports. The report_type parameter can be HID_FEATURE_REPORT
or HID_INPUT_REPORT. This function is to be called with the minors_lock
mutex held. */
* per section 7.2.1 of the HID specification, version 1.1. The first byte
* of buffer is the report number to request, or 0x0 if the defice does not
* use numbered reports. The report_type parameter can be HID_FEATURE_REPORT
* or HID_INPUT_REPORT. This function is to be called with the minors_lock
* mutex held. */
static ssize_t hidraw_get_report(struct file *file, char __user *buffer, size_t count, unsigned char report_type)
{
unsigned int minor = iminor(file->f_path.dentry->d_inode);
Expand Down Expand Up @@ -207,7 +207,7 @@ static ssize_t hidraw_get_report(struct file *file, char __user *buffer, size_t
}

/* Read the first byte from the user. This is the report number,
which is passed to dev->hid_get_raw_report(). */
* which is passed to dev->hid_get_raw_report(). */
if (copy_from_user(&report_number, buffer, 1)) {
ret = -EFAULT;
goto out_free;
Expand Down

0 comments on commit f78823d

Please sign in to comment.