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,
return err;
}
module_param_string(scsi_dev_flags, scsi_dev_flags, sizeof(scsi_dev_flags), 0);
MODULE_PARM_DESC(scsi_dev_flags,
module_param_string(dev_flags, scsi_dev_flags, sizeof(scsi_dev_flags), 0);
MODULE_PARM_DESC(dev_flags,
"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"
" to the scsi device info list");
module_param(scsi_default_dev_flags, int, S_IRUGO|S_IWUSR);
MODULE_PARM_DESC(scsi_default_dev_flags,
module_param_named(default_dev_flags, scsi_default_dev_flags, int, S_IRUGO|S_IWUSR);
MODULE_PARM_DESC(default_dev_flags,
"scsi default device flag integer value");
/**
......
......@@ -73,8 +73,8 @@ static unsigned int max_scsi_luns = MAX_SCSI_LUNS;
static unsigned int max_scsi_luns = 1;
#endif
module_param(max_scsi_luns, int, S_IRUGO|S_IWUSR);
MODULE_PARM_DESC(max_scsi_luns,
module_param_named(max_luns, max_scsi_luns, int, S_IRUGO|S_IWUSR);
MODULE_PARM_DESC(max_luns,
"last scsi LUN (should be between 1 and 2^32-1)");
#ifdef CONFIG_SCSI_REPORT_LUNS
......@@ -87,8 +87,8 @@ MODULE_PARM_DESC(max_scsi_luns,
*/
static unsigned int max_scsi_report_luns = 128;
module_param(max_scsi_report_luns, int, S_IRUGO|S_IWUSR);
MODULE_PARM_DESC(max_scsi_report_luns,
module_param_named(max_report_luns, max_scsi_report_luns, int, S_IRUGO|S_IWUSR);
MODULE_PARM_DESC(max_report_luns,
"REPORT LUNS maximum number of LUNS received (should be"
" between 1 and 16384)");
#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