]> git.baikalelectronics.ru Git - kernel.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)
commitfcd1334c6514dec02a253019d1e5226833979671
tree327b642eab6b4d83d5cc268e78a1fb62bfa097ff
parentb84930c0c75dccec911b52673b7723434446b3c2
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