Commit 9b9a5c9d authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] fix parameter naming

use module_param_named to avoid the the superflous scsi strings
in the option names.
parent 3cd3e85c
...@@ -451,14 +451,14 @@ static int proc_scsi_devinfo_write(struct file *file, const char *buf, ...@@ -451,14 +451,14 @@ static int proc_scsi_devinfo_write(struct file *file, const char *buf,
return err; return err;
} }
module_param_string(scsi_dev_flags, scsi_dev_flags, sizeof(scsi_dev_flags), 0); module_param_string(dev_flags, scsi_dev_flags, sizeof(scsi_dev_flags), 0);
MODULE_PARM_DESC(scsi_dev_flags, MODULE_PARM_DESC(dev_flags,
"Given scsi_dev_flags=vendor:model:flags[,v:m:f] add black/white" "Given scsi_dev_flags=vendor:model:flags[,v:m:f] add black/white"
" list entries for vendor and model with an integer value of flags" " list entries for vendor and model with an integer value of flags"
" to the scsi device info list"); " to the scsi device info list");
module_param(scsi_default_dev_flags, int, S_IRUGO|S_IWUSR); module_param_named(default_dev_flags, scsi_default_dev_flags, int, S_IRUGO|S_IWUSR);
MODULE_PARM_DESC(scsi_default_dev_flags, MODULE_PARM_DESC(default_dev_flags,
"scsi default device flag integer value"); "scsi default device flag integer value");
/** /**
......
...@@ -73,8 +73,8 @@ static unsigned int max_scsi_luns = MAX_SCSI_LUNS; ...@@ -73,8 +73,8 @@ static unsigned int max_scsi_luns = MAX_SCSI_LUNS;
static unsigned int max_scsi_luns = 1; static unsigned int max_scsi_luns = 1;
#endif #endif
module_param(max_scsi_luns, int, S_IRUGO|S_IWUSR); module_param_named(max_luns, max_scsi_luns, int, S_IRUGO|S_IWUSR);
MODULE_PARM_DESC(max_scsi_luns, MODULE_PARM_DESC(max_luns,
"last scsi LUN (should be between 1 and 2^32-1)"); "last scsi LUN (should be between 1 and 2^32-1)");
#ifdef CONFIG_SCSI_REPORT_LUNS #ifdef CONFIG_SCSI_REPORT_LUNS
...@@ -87,8 +87,8 @@ MODULE_PARM_DESC(max_scsi_luns, ...@@ -87,8 +87,8 @@ MODULE_PARM_DESC(max_scsi_luns,
*/ */
static unsigned int max_scsi_report_luns = 128; static unsigned int max_scsi_report_luns = 128;
module_param(max_scsi_report_luns, int, S_IRUGO|S_IWUSR); module_param_named(max_report_luns, max_scsi_report_luns, int, S_IRUGO|S_IWUSR);
MODULE_PARM_DESC(max_scsi_report_luns, MODULE_PARM_DESC(max_report_luns,
"REPORT LUNS maximum number of LUNS received (should be" "REPORT LUNS maximum number of LUNS received (should be"
" between 1 and 16384)"); " between 1 and 16384)");
#endif #endif
......
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