diff options
Diffstat (limited to 'drivers/ide/ide-proc.c')
-rw-r--r-- | drivers/ide/ide-proc.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c index 0bdbb9bf90ba..22f41fa4e5b6 100644 --- a/drivers/ide/ide-proc.c +++ b/drivers/ide/ide-proc.c | |||
@@ -12,14 +12,6 @@ | |||
12 | * "settings" files. e.g. "cat /proc/ide0/hda/settings" | 12 | * "settings" files. e.g. "cat /proc/ide0/hda/settings" |
13 | * To write a new value "val" into a specific setting "name", use: | 13 | * To write a new value "val" into a specific setting "name", use: |
14 | * echo "name:val" >/proc/ide/ide0/hda/settings | 14 | * echo "name:val" >/proc/ide/ide0/hda/settings |
15 | * | ||
16 | * Also useful, "cat /proc/ide0/hda/[identify, smart_values, | ||
17 | * smart_thresholds, capabilities]" will issue an IDENTIFY / | ||
18 | * PACKET_IDENTIFY / SMART_READ_VALUES / SMART_READ_THRESHOLDS / | ||
19 | * SENSE CAPABILITIES command to /dev/hda, and then dump out the | ||
20 | * returned data as 256 16-bit words. The "hdparm" utility will | ||
21 | * be updated someday soon to use this mechanism. | ||
22 | * | ||
23 | */ | 15 | */ |
24 | 16 | ||
25 | #include <linux/module.h> | 17 | #include <linux/module.h> |
@@ -349,7 +341,7 @@ static int set_xfer_rate (ide_drive_t *drive, int arg) | |||
349 | return -EINVAL; | 341 | return -EINVAL; |
350 | 342 | ||
351 | memset(&task, 0, sizeof(task)); | 343 | memset(&task, 0, sizeof(task)); |
352 | task.tf.command = WIN_SETFEATURES; | 344 | task.tf.command = ATA_CMD_SET_FEATURES; |
353 | task.tf.feature = SETFEATURES_XFER; | 345 | task.tf.feature = SETFEATURES_XFER; |
354 | task.tf.nsect = (u8)arg; | 346 | task.tf.nsect = (u8)arg; |
355 | task.tf_flags = IDE_TFLAG_OUT_FEATURE | IDE_TFLAG_OUT_NSECT | | 347 | task.tf_flags = IDE_TFLAG_OUT_FEATURE | IDE_TFLAG_OUT_NSECT | |