aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorXinghai Yu <yuxinghai@cn.fujitsu.com>2013-07-25 06:32:42 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-05 15:21:29 -0400
commit6fcf0497ffcc18c18991b81cf5e4c388264df938 (patch)
treec51f7802e079f38922c5daed19d9dbcf3e087260 /drivers/ide
parent79c8fa0b6bfa6953352a8e73b7105ac268e02743 (diff)
ide-disk_proc: use macro to replace magic number
Signed-off-by: Xinghai Yu <yuxinghai@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-ioctls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-ioctls.c b/drivers/ide/ide-ioctls.c
index 4d19eb9772a1..6233fa2cb8a9 100644
--- a/drivers/ide/ide-ioctls.c
+++ b/drivers/ide/ide-ioctls.c
@@ -141,8 +141,8 @@ static int ide_cmd_ioctl(ide_drive_t *drive, unsigned long arg)
141 if (args[0] == ATA_CMD_SMART) { 141 if (args[0] == ATA_CMD_SMART) {
142 tf->nsect = args[3]; 142 tf->nsect = args[3];
143 tf->lbal = args[1]; 143 tf->lbal = args[1];
144 tf->lbam = 0x4f; 144 tf->lbam = ATA_SMART_LBAM_PASS;
145 tf->lbah = 0xc2; 145 tf->lbah = ATA_SMART_LBAH_PASS;
146 cmd.valid.out.tf = IDE_VALID_OUT_TF; 146 cmd.valid.out.tf = IDE_VALID_OUT_TF;
147 cmd.valid.in.tf = IDE_VALID_NSECT; 147 cmd.valid.in.tf = IDE_VALID_NSECT;
148 } else { 148 } else {