]> git.karo-electronics.de Git - karo-tx-linux.git/commit
atari_NCR5380: Refactor Falcon special cases
authorFinn Thain <fthain@telegraphics.com.au>
Wed, 12 Nov 2014 05:12:14 +0000 (16:12 +1100)
committerChristoph Hellwig <hch@lst.de>
Thu, 20 Nov 2014 08:11:16 +0000 (09:11 +0100)
commitef1081cbf05b22d3d0e05b267a5559a8cd8e8d4a
tree327b642eab6b4d83d5cc268e78a1fb62bfa097ff
parentf527590278f1b823ba979a234241d09ed2c436b4
atari_NCR5380: Refactor Falcon special cases

Make the atari_NCR5380.c core driver usable by sun3_scsi, mac_scsi and
others by moving some of the Falcon-specific code out of the core driver:
!IS_A_TT, atari_read_overruns and falcon_dont_release. Replace these with
hostdata variables and flags. FLAG_CHECK_LAST_BYTE_SENT is unused in
atari_NCR5380.c so don't set it.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/NCR5380.h
drivers/scsi/atari_NCR5380.c
drivers/scsi/atari_scsi.c