Commit 588c902b authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Martin K. Petersen

scsi: scsi_devinfo: Whitespace fixes

Signed-off-by: default avatarHannes Reinecke <hare@suse.com>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent f26aeada
...@@ -304,8 +304,8 @@ static void scsi_strcpy_devinfo(char *name, char *to, size_t to_length, ...@@ -304,8 +304,8 @@ static void scsi_strcpy_devinfo(char *name, char *to, size_t to_length,
*/ */
to[from_length] = '\0'; to[from_length] = '\0';
} else { } else {
/* /*
* space pad the string if it is short. * space pad the string if it is short.
*/ */
strncpy(&to[from_length], spaces, strncpy(&to[from_length], spaces,
to_length - from_length); to_length - from_length);
...@@ -325,10 +325,10 @@ static void scsi_strcpy_devinfo(char *name, char *to, size_t to_length, ...@@ -325,10 +325,10 @@ static void scsi_strcpy_devinfo(char *name, char *to, size_t to_length,
* @flags: if strflags NULL, use this flag value * @flags: if strflags NULL, use this flag value
* *
* Description: * Description:
* Create and add one dev_info entry for @vendor, @model, @strflags or * Create and add one dev_info entry for @vendor, @model, @strflags or
* @flag. If @compatible, add to the tail of the list, do not space * @flag. If @compatible, add to the tail of the list, do not space
* pad, and set devinfo->compatible. The scsi_static_device_list entries * pad, and set devinfo->compatible. The scsi_static_device_list entries
* are added with @compatible 1 and @clfags NULL. * are added with @compatible 1 and @clfags NULL.
* *
* Returns: 0 OK, -error on failure. * Returns: 0 OK, -error on failure.
**/ **/
...@@ -350,11 +350,11 @@ static int scsi_dev_info_list_add(int compatible, char *vendor, char *model, ...@@ -350,11 +350,11 @@ static int scsi_dev_info_list_add(int compatible, char *vendor, char *model,
* @key: specify list to use * @key: specify list to use
* *
* Description: * Description:
* Create and add one dev_info entry for @vendor, @model, * Create and add one dev_info entry for @vendor, @model,
* @strflags or @flag in list specified by @key. If @compatible, * @strflags or @flag in list specified by @key. If @compatible,
* add to the tail of the list, do not space pad, and set * add to the tail of the list, do not space pad, and set
* devinfo->compatible. The scsi_static_device_list entries are * devinfo->compatible. The scsi_static_device_list entries are
* added with @compatible 1 and @clfags NULL. * added with @compatible 1 and @clfags NULL.
* *
* Returns: 0 OK, -error on failure. * Returns: 0 OK, -error on failure.
**/ **/
...@@ -405,7 +405,7 @@ EXPORT_SYMBOL(scsi_dev_info_list_add_keyed); ...@@ -405,7 +405,7 @@ EXPORT_SYMBOL(scsi_dev_info_list_add_keyed);
* *
* Description: * Description:
* Finds the first dev_info entry matching @vendor, @model * Finds the first dev_info entry matching @vendor, @model
* in list specified by @key. * in list specified by @key.
* *
* Returns: pointer to matching entry, or ERR_PTR on failure. * Returns: pointer to matching entry, or ERR_PTR on failure.
**/ **/
...@@ -467,9 +467,9 @@ static struct scsi_dev_info_list *scsi_dev_info_list_find(const char *vendor, ...@@ -467,9 +467,9 @@ static struct scsi_dev_info_list *scsi_dev_info_list_find(const char *vendor,
return devinfo; return devinfo;
} else { } else {
if (!memcmp(devinfo->vendor, vendor, if (!memcmp(devinfo->vendor, vendor,
sizeof(devinfo->vendor)) && sizeof(devinfo->vendor)) &&
!memcmp(devinfo->model, model, !memcmp(devinfo->model, model,
sizeof(devinfo->model))) sizeof(devinfo->model)))
return devinfo; return devinfo;
} }
} }
...@@ -508,10 +508,10 @@ EXPORT_SYMBOL(scsi_dev_info_list_del_keyed); ...@@ -508,10 +508,10 @@ EXPORT_SYMBOL(scsi_dev_info_list_del_keyed);
* @dev_list: string of device flags to add * @dev_list: string of device flags to add
* *
* Description: * Description:
* Parse dev_list, and add entries to the scsi_dev_info_list. * Parse dev_list, and add entries to the scsi_dev_info_list.
* dev_list is of the form "vendor:product:flag,vendor:product:flag". * dev_list is of the form "vendor:product:flag,vendor:product:flag".
* dev_list is modified via strsep. Can be called for command line * dev_list is modified via strsep. Can be called for command line
* addition, for proc or mabye a sysfs interface. * addition, for proc or mabye a sysfs interface.
* *
* Returns: 0 if OK, -error on failure. * Returns: 0 if OK, -error on failure.
**/ **/
...@@ -701,7 +701,7 @@ static int proc_scsi_devinfo_open(struct inode *inode, struct file *file) ...@@ -701,7 +701,7 @@ static int proc_scsi_devinfo_open(struct inode *inode, struct file *file)
return seq_open(file, &scsi_devinfo_seq_ops); return seq_open(file, &scsi_devinfo_seq_ops);
} }
/* /*
* proc_scsi_dev_info_write - allow additions to scsi_dev_info_list via /proc. * proc_scsi_dev_info_write - allow additions to scsi_dev_info_list via /proc.
* *
* Description: Adds a black/white list entry for vendor and model with an * Description: Adds a black/white list entry for vendor and model with an
...@@ -840,8 +840,8 @@ EXPORT_SYMBOL(scsi_dev_info_remove_list); ...@@ -840,8 +840,8 @@ EXPORT_SYMBOL(scsi_dev_info_remove_list);
* scsi_init_devinfo - set up the dynamic device list. * scsi_init_devinfo - set up the dynamic device list.
* *
* Description: * Description:
* Add command line entries from scsi_dev_flags, then add * Add command line entries from scsi_dev_flags, then add
* scsi_static_device_list entries to the scsi device info list. * scsi_static_device_list entries to the scsi device info list.
*/ */
int __init scsi_init_devinfo(void) int __init scsi_init_devinfo(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment