mirror of https://gitee.com/openkylin/linux.git
libata: WIN_* -> ATA_CMD_*
Acked-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
f41891c134
commit
a4f19040a3
|
@ -503,7 +503,7 @@ int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg)
|
|||
scsi_cmd[0] = ATA_16;
|
||||
|
||||
scsi_cmd[4] = args[2];
|
||||
if (args[0] == WIN_SMART) { /* hack -- ide driver does this too... */
|
||||
if (args[0] == ATA_CMD_SMART) { /* hack -- ide driver does this too */
|
||||
scsi_cmd[6] = args[3];
|
||||
scsi_cmd[8] = args[1];
|
||||
scsi_cmd[10] = 0x4f;
|
||||
|
|
Loading…
Reference in New Issue