Skip to contentSkip to conversation

fix parameter naming

PATCH New Christoph Hellwig 1 participant 1 message Jun 6, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix parameter naming

use module_param_named to avoid the the superflous scsi strings in the option names.

drivers/scsi/scsi_devinfo.c +4 -4
diff -Nru a/drivers/scsi/scsi_devinfo.c b/drivers/scsi/scsi_devinfo.c
@@ -451,14 +451,14 @@
 	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");
 
 /**
drivers/scsi/scsi_scan.c +4 -4
diff -Nru a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
@@ -73,8 +73,8 @@
 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 @@
  */
 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