scsi: saner replacements for ->proc_info()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 31 Mar 2013 03:58:05 +0000 (23:58 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Apr 2013 18:13:14 +0000 (14:13 -0400)
commit0ffddfbb834557b8babc7f050b83d11dbcbb1008
tree620afe52d29443b4ad10f805afe6b22d43349e5f
parentb6cdc7310338e204224f865918f774eb6db0b75d
scsi: saner replacements for ->proc_info()

It's still an obsolete interface; don't introduce those in new drivers.
However, it's saner than the ->proc_info() and commits after this one
will convert the existing ->proc_info() users to it.

The read side is ->show_info(seq_file *, struct Scsi_Host *); use
seq_... for generating contents.

The write side is ->write_info(struct Scsi_Host *, char *, int).

Again, this is driven by procfs needs; we are going to kill ->write_proc()
and ->read_proc() and this is the main obstacle to burying that piece of
shit.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/scsi/scsi_proc.c
include/scsi/scsi_host.h