* [PATCH] ide-disk_proc: use macro to replace magic number
@ 2013-07-25 10:32 Xinghai Yu
2013-09-05 19:38 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Xinghai Yu @ 2013-07-25 10:32 UTC (permalink / raw)
To: davem; +Cc: linux-ide, Xinghai Yu
Signed-off-by: Xinghai Yu <yuxinghai@cn.fujitsu.com>
---
drivers/ide/ide-ioctls.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ide/ide-ioctls.c b/drivers/ide/ide-ioctls.c
index 4d19eb9..6233fa2 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)
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 {
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ide-disk_proc: use macro to replace magic number
2013-07-25 10:32 [PATCH] ide-disk_proc: use macro to replace magic number Xinghai Yu
@ 2013-09-05 19:38 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-09-05 19:38 UTC (permalink / raw)
To: yuxinghai; +Cc: linux-ide
From: Xinghai Yu <yuxinghai@cn.fujitsu.com>
Date: Thu, 25 Jul 2013 18:32:42 +0800
> Signed-off-by: Xinghai Yu <yuxinghai@cn.fujitsu.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-05 19:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-25 10:32 [PATCH] ide-disk_proc: use macro to replace magic number Xinghai Yu
2013-09-05 19:38 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).