Commit 6fcf0497 authored by Xinghai Yu's avatar Xinghai Yu Committed by David S. Miller

ide-disk_proc: use macro to replace magic number

Signed-off-by: default avatarXinghai Yu <yuxinghai@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 79c8fa0b
...@@ -141,8 +141,8 @@ static int ide_cmd_ioctl(ide_drive_t *drive, unsigned long arg) ...@@ -141,8 +141,8 @@ static int ide_cmd_ioctl(ide_drive_t *drive, unsigned long arg)
if (args[0] == ATA_CMD_SMART) { if (args[0] == ATA_CMD_SMART) {
tf->nsect = args[3]; tf->nsect = args[3];
tf->lbal = args[1]; tf->lbal = args[1];
tf->lbam = 0x4f; tf->lbam = ATA_SMART_LBAM_PASS;
tf->lbah = 0xc2; tf->lbah = ATA_SMART_LBAH_PASS;
cmd.valid.out.tf = IDE_VALID_OUT_TF; cmd.valid.out.tf = IDE_VALID_OUT_TF;
cmd.valid.in.tf = IDE_VALID_NSECT; cmd.valid.in.tf = IDE_VALID_NSECT;
} else { } else {
......
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