]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ide-disk_proc: use macro to replace magic number
authorXinghai Yu <yuxinghai@cn.fujitsu.com>
Thu, 25 Jul 2013 10:32:42 +0000 (18:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Sep 2013 19:21:29 +0000 (15:21 -0400)
Signed-off-by: Xinghai Yu <yuxinghai@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-ioctls.c

index 4d19eb9772a12df23d1b70f02e04e783d8a5707f..6233fa2cb8a97806490b983c8013dcee09567b39 100644 (file)
@@ -141,8 +141,8 @@ static int ide_cmd_ioctl(ide_drive_t *drive, unsigned long arg)
        if (args[0] == ATA_CMD_SMART) {
                tf->nsect = args[3];
                tf->lbal  = args[1];
-               tf->lbam  = 0x4f;
-               tf->lbah  = 0xc2;
+               tf->lbam  = ATA_SMART_LBAM_PASS;
+               tf->lbah  = ATA_SMART_LBAH_PASS;
                cmd.valid.out.tf = IDE_VALID_OUT_TF;
                cmd.valid.in.tf  = IDE_VALID_NSECT;
        } else {