summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic79xx.h
diff options
context:
space:
mode:
authorKees Cook2017-08-19 01:26:35 +0200
committerKees Cook2017-11-01 19:27:04 +0100
commit8c4602f3c147caaecf33adf3aaf0c5bc84c6b409 (patch)
tree6d30854ca45d67d8511d02ef554e7da2b496cbba /drivers/scsi/aic7xxx/aic79xx.h
parenttimer: Add parenthesis around timer_setup() macro arguments (diff)
downloadkernel-qcow2-linux-8c4602f3c147caaecf33adf3aaf0c5bc84c6b409.tar.gz
kernel-qcow2-linux-8c4602f3c147caaecf33adf3aaf0c5bc84c6b409.tar.xz
kernel-qcow2-linux-8c4602f3c147caaecf33adf3aaf0c5bc84c6b409.zip
scsi: aic7xxx: Convert timers to use timer_setup()
stat_timer only ever assigns the same function and data, so consolidate to using timer_setup(), adjust callback, drop everything else used to pass things around, and remove needless typedefs. reset_timer is unused; remove it. Cc: Hannes Reinecke <hare@suse.com> Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Cc: linux-scsi@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic79xx.h')
-rw-r--r--drivers/scsi/aic7xxx/aic79xx.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx.h b/drivers/scsi/aic7xxx/aic79xx.h
index d47b527b25dd..31f2bb9d7146 100644
--- a/drivers/scsi/aic7xxx/aic79xx.h
+++ b/drivers/scsi/aic7xxx/aic79xx.h
@@ -1046,8 +1046,6 @@ typedef enum {
typedef uint8_t ahd_mode_state;
-typedef void ahd_callback_t (void *);
-
struct ahd_completion
{
uint16_t tag;
@@ -1122,8 +1120,7 @@ struct ahd_softc {
/*
* Timer handles for timer driven callbacks.
*/
- ahd_timer_t reset_timer;
- ahd_timer_t stat_timer;
+ struct timer_list stat_timer;
/*
* Statistics.