]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
[PATCH] libata: implement ata_dev_id_c_string()
authorTejun Heo <htejun@gmail.com>
Sun, 12 Feb 2006 13:47:04 +0000 (22:47 +0900)
committerJeff Garzik <jgarzik@pobox.com>
Sun, 12 Feb 2006 19:24:41 +0000 (14:24 -0500)
commit0e949ff304a7ca07db38c17fbbf3ead1085d7bbf
treeecc4834d27e221863dc5dbef3c13763dbdf4dd56
parent48f80e12abbc1e9034e54614c30e7c304209ce99
[PATCH] libata: implement ata_dev_id_c_string()

ata_dev_id_c_string() reads ATA string from the specified offset of
the given IDENTIFY PAGE and puts it in the specified buffer in trimmed
and NULL-terminated form.  The caller must supply a buffer which is
one byte larger than the maximum size of the target ID string.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/scsi/libata-core.c
include/linux/libata.h