]> git.neil.brown.name Git - history.git/commit
[PATCH] scsi_debug version 1.67 for lk 2.5.52
authorDouglas Gilbert <dougg@torque.net>
Mon, 23 Dec 2002 06:32:15 +0000 (00:32 -0600)
committerJames Bottomley <jejb@mulgrave.(none)>
Mon, 23 Dec 2002 06:32:15 +0000 (00:32 -0600)
commit81513c826cec1f6a53b1f7e5257160864a6b5943
treed1b5c812d51dfef61cfcd96dc0bedec8ae32b573
parentbe388a51e7eb4873e47081dbbcd08a94efc548ae
[PATCH] scsi_debug version 1.67 for lk 2.5.52

This patch uses the module_param() facility introduced in
lk 2.5.52 (see linux/moduleparam.h) to simplify boot time
and module load time parameters for the scsi_debug driver.

The intent of module_param() is to unify
   - boot time parameters
   - module load time parameters
   - sysfs driver parameters
into a few simple calls (seen from the driver's point of view).
The sysfs capability hasn't been implemented yet. Using
module_param() removes over 100 lines of boilerplate code
from the scsi_debug driver.

Following the conventions suggested by Rusty, scsi_debug's
kernel boot time options have been changed to this form:
    scsi_debug.num_devs=2
while the module load options are now like this:
    modprobe scsi_debug num_devs=2

This patch also updates the Kconfig entry for the scsi_debug
driver.
drivers/scsi/Kconfig
drivers/scsi/scsi_debug.c