Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e633c1e5
Commit
e633c1e5
authored
Mar 31, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aha1740: switch to ->show_info()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
275084cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
24 deletions
+5
-24
drivers/scsi/aha1740.c
drivers/scsi/aha1740.c
+5
-24
No files found.
drivers/scsi/aha1740.c
View file @
e633c1e5
...
...
@@ -106,33 +106,14 @@ static inline dma_addr_t ecb_cpu_to_dma (struct Scsi_Host *host, void *cpu)
return
hdata
->
ecb_dma_addr
+
offset
;
}
static
int
aha1740_proc_info
(
struct
Scsi_Host
*
shpnt
,
char
*
buffer
,
char
**
start
,
off_t
offset
,
int
length
,
int
inout
)
static
int
aha1740_show_info
(
struct
seq_file
*
m
,
struct
Scsi_Host
*
shpnt
)
{
int
len
;
struct
aha1740_hostdata
*
host
;
if
(
inout
)
return
-
ENOSYS
;
host
=
HOSTDATA
(
shpnt
);
len
=
sprintf
(
buffer
,
"aha174x at IO:%lx, IRQ %d, SLOT %d.
\n
"
struct
aha1740_hostdata
*
host
=
HOSTDATA
(
shpnt
);
seq_printf
(
m
,
"aha174x at IO:%lx, IRQ %d, SLOT %d.
\n
"
"Extended translation %sabled.
\n
"
,
shpnt
->
io_port
,
shpnt
->
irq
,
host
->
edev
->
slot
,
host
->
translation
?
"en"
:
"dis"
);
if
(
offset
>
len
)
{
*
start
=
buffer
;
return
0
;
}
*
start
=
buffer
+
offset
;
len
-=
offset
;
if
(
len
>
length
)
len
=
length
;
return
len
;
return
0
;
}
static
int
aha1740_makecode
(
unchar
*
sense
,
unchar
*
status
)
...
...
@@ -556,7 +537,7 @@ static int aha1740_eh_abort_handler (Scsi_Cmnd *dummy)
static
struct
scsi_host_template
aha1740_template
=
{
.
module
=
THIS_MODULE
,
.
proc_name
=
"aha1740"
,
.
proc_info
=
aha1740_proc
_info
,
.
show_info
=
aha1740_show
_info
,
.
name
=
"Adaptec 174x (EISA)"
,
.
queuecommand
=
aha1740_queuecommand
,
.
bios_param
=
aha1740_biosparam
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment