mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-15 19:25:13 +00:00
libata: Use SMART LBAM/LBAH password defines
Instead of hardcoding magic values for the SMART password, use the defines in <linux/ata.h> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
2ce711f965
commit
f355eece31
1 changed files with 2 additions and 2 deletions
|
|
@ -639,8 +639,8 @@ int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg)
|
|||
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;
|
||||
scsi_cmd[12] = 0xc2;
|
||||
scsi_cmd[10] = ATA_SMART_LBAM_PASS;
|
||||
scsi_cmd[12] = ATA_SMART_LBAH_PASS;
|
||||
} else {
|
||||
scsi_cmd[6] = args[1];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue