libata-eh: update atapi_eh_request_sense() to take @dev instead of @qc
authorTejun Heo <htejun@gmail.com>
Tue, 10 Jun 2008 09:28:05 +0000 (18:28 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 14 Jul 2008 19:59:33 +0000 (15:59 -0400)
commit3eabddb8ed4f488664ff5d67968392bb424836a3
tree54f86b3900246f91c0ff87943ef12e19c3fc7c15
parentec6add99307d5149e17f6e358f19f0205b622407
libata-eh: update atapi_eh_request_sense() to take @dev instead of @qc

Update atapi_eh_request_sense() to take @dev, @sense_buf and
@dfl_sense_key instead of taking @qc and extracting information from
it.  This change is to make the function more generic and allow it to
be called from other places.

While at it, make cdb initialization use initializer.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-eh.c