diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2011-03-27 14:29:02 -0400 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2011-03-27 14:30:32 -0400 |
| commit | d2a1cfebe38edc0bbac8f5cfbce062fe3d146d7a (patch) | |
| tree | ec28b08b24866133022b904655278870fccca0d3 | |
| parent | ac065bf214bb6a7fb7536f2dde686d4694342801 (diff) | |
HID: hidraw: fix comments
Adjust the comments a little bit.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
| -rw-r--r-- | drivers/hid/hidraw.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 54409cba018c..93c72e593701 100644 --- a/drivers/hid/hidraw.c +++ b/drivers/hid/hidraw.c | |||
| @@ -101,8 +101,8 @@ out: | |||
| 101 | return ret; | 101 | return ret; |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | /* the first byte is expected to be a report number */ | 104 | /* The first byte is expected to be a report number. |
| 105 | /* This function is to be called with the minors_lock mutex held */ | 105 | * This function is to be called with the minors_lock mutex held */ |
| 106 | static ssize_t hidraw_send_report(struct file *file, const char __user *buffer, size_t count, unsigned char report_type) | 106 | static ssize_t hidraw_send_report(struct file *file, const char __user *buffer, size_t count, unsigned char report_type) |
| 107 | { | 107 | { |
| 108 | unsigned int minor = iminor(file->f_path.dentry->d_inode); | 108 | unsigned int minor = iminor(file->f_path.dentry->d_inode); |
| @@ -166,11 +166,11 @@ static ssize_t hidraw_write(struct file *file, const char __user *buffer, size_t | |||
| 166 | 166 | ||
| 167 | 167 | ||
| 168 | /* This function performs a Get_Report transfer over the control endpoint | 168 | /* This function performs a Get_Report transfer over the control endpoint |
| 169 | per section 7.2.1 of the HID specification, version 1.1. The first byte | 169 | * per section 7.2.1 of the HID specification, version 1.1. The first byte |
| 170 | of buffer is the report number to request, or 0x0 if the defice does not | 170 | * of buffer is the report number to request, or 0x0 if the defice does not |
| 171 | use numbered reports. The report_type parameter can be HID_FEATURE_REPORT | 171 | * use numbered reports. The report_type parameter can be HID_FEATURE_REPORT |
| 172 | or HID_INPUT_REPORT. This function is to be called with the minors_lock | 172 | * or HID_INPUT_REPORT. This function is to be called with the minors_lock |
| 173 | mutex held. */ | 173 | * mutex held. */ |
| 174 | static ssize_t hidraw_get_report(struct file *file, char __user *buffer, size_t count, unsigned char report_type) | 174 | static ssize_t hidraw_get_report(struct file *file, char __user *buffer, size_t count, unsigned char report_type) |
| 175 | { | 175 | { |
| 176 | unsigned int minor = iminor(file->f_path.dentry->d_inode); | 176 | unsigned int minor = iminor(file->f_path.dentry->d_inode); |
| @@ -207,7 +207,7 @@ static ssize_t hidraw_get_report(struct file *file, char __user *buffer, size_t | |||
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | /* Read the first byte from the user. This is the report number, | 209 | /* Read the first byte from the user. This is the report number, |
| 210 | which is passed to dev->hid_get_raw_report(). */ | 210 | * which is passed to dev->hid_get_raw_report(). */ |
| 211 | if (copy_from_user(&report_number, buffer, 1)) { | 211 | if (copy_from_user(&report_number, buffer, 1)) { |
| 212 | ret = -EFAULT; | 212 | ret = -EFAULT; |
| 213 | goto out_free; | 213 | goto out_free; |
