Commit 93d9161d authored by Kai Mäkisara's avatar Kai Mäkisara Committed by James Bottomley

[PATCH] avoid obsolete "scsi.h" APIs in st

> Date: Tue, 14 Sep 2004 20:18:00 +0200
> From: Christoph Hellwig <hch>
> Subject: [PATCH] avoid obsolete "scsi.h" APIs in st
>
> no actual behaviour changes, just update to the less obsfucated 2.6+
> APIs.
>
Looks good to me but did not link when DEBUG was set to 1: one
print_req_sense() conversion was missed. This is corrected in the patch at
the end of this message.
Signed-off-by: default avatarKai Makisara <kai.makisara@kolumbus.fi>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 9d4cf1a4
This diff is collapsed.
......@@ -2,11 +2,9 @@
#ifndef _ST_H
#define _ST_H
#ifndef _SCSI_H
#include "scsi.h"
#endif
#include <linux/completion.h>
/* The tape buffer descriptor. */
typedef struct {
unsigned char in_use;
......@@ -19,7 +17,7 @@ typedef struct {
int writing;
int midlevel_result;
int syscall_result;
Scsi_Request *last_SRpnt;
struct scsi_request *last_SRpnt;
unsigned char *b_data;
unsigned short use_sg; /* zero or max number of s/g segments for this adapter */
unsigned short sg_segs; /* number of segments in s/g list */
......@@ -76,7 +74,7 @@ typedef struct {
/* The tape drive descriptor */
typedef struct {
struct scsi_driver *driver;
Scsi_Device *device;
struct scsi_device *device;
struct semaphore lock; /* For serialization */
struct completion wait; /* For SCSI commands */
ST_buffer *buffer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment