Commit 8403fb48 authored by James Bottomley's avatar James Bottomley

[SCSI debug driver] change DRIVER_ATTR usage

parent c6efcb49
...@@ -1279,7 +1279,7 @@ static ssize_t sdebug_delay_write(struct device_driver * ddp, ...@@ -1279,7 +1279,7 @@ static ssize_t sdebug_delay_write(struct device_driver * ddp,
return -EINVAL; return -EINVAL;
} }
DRIVER_ATTR(delay, "delay", S_IRUGO | S_IWUSR, sdebug_delay_read, DRIVER_ATTR(delay, S_IRUGO | S_IWUSR, sdebug_delay_read,
sdebug_delay_write) sdebug_delay_write)
static ssize_t sdebug_opts_read(struct device_driver * ddp, char * buf, static ssize_t sdebug_opts_read(struct device_driver * ddp, char * buf,
...@@ -1311,7 +1311,7 @@ static ssize_t sdebug_opts_write(struct device_driver * ddp, ...@@ -1311,7 +1311,7 @@ static ssize_t sdebug_opts_write(struct device_driver * ddp,
return count; return count;
} }
DRIVER_ATTR(opts, "opts", S_IRUGO | S_IWUSR, sdebug_opts_read, DRIVER_ATTR(opts, S_IRUGO | S_IWUSR, sdebug_opts_read,
sdebug_opts_write) sdebug_opts_write)
static ssize_t sdebug_num_devs_read(struct device_driver * ddp, char * buf, static ssize_t sdebug_num_devs_read(struct device_driver * ddp, char * buf,
...@@ -1320,7 +1320,7 @@ static ssize_t sdebug_num_devs_read(struct device_driver * ddp, char * buf, ...@@ -1320,7 +1320,7 @@ static ssize_t sdebug_num_devs_read(struct device_driver * ddp, char * buf,
return off ? 0 : snprintf(buf, count, "%d\n", scsi_debug_num_devs); return off ? 0 : snprintf(buf, count, "%d\n", scsi_debug_num_devs);
} }
DRIVER_ATTR(num_devs, "num_devs", S_IRUGO, sdebug_num_devs_read, NULL) DRIVER_ATTR(num_devs, S_IRUGO, sdebug_num_devs_read, NULL)
static void do_create_driverfs_files() static void do_create_driverfs_files()
{ {
......
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