diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-01-23 12:43:55 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-25 12:00:30 -0800 |
commit | 53b28a23532f203f4b8287fad2461886088a9158 (patch) | |
tree | e364815bbf047dda4551b0c9e0e3f77a7e8666be /drivers/staging/comedi/drivers/addi_apci_3501.c | |
parent | staging: comedi: addi_apci_3501: start defining i/o map (diff) | |
download | linux-dev-53b28a23532f203f4b8287fad2461886088a9158.tar.xz linux-dev-53b28a23532f203f4b8287fad2461886088a9158.zip |
staging: comedi: addi_apci_3501: reorder code a bit
Move the private struct definition and the #include of the
low-level support code to prepare for merging the code in
hwdrv_apci3501.c into the driver.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers/addi_apci_3501.c')
-rw-r--r-- | drivers/staging/comedi/drivers/addi_apci_3501.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/staging/comedi/drivers/addi_apci_3501.c b/drivers/staging/comedi/drivers/addi_apci_3501.c index 6207622467a6..a7527a2fe4f0 100644 --- a/drivers/staging/comedi/drivers/addi_apci_3501.c +++ b/drivers/staging/comedi/drivers/addi_apci_3501.c @@ -13,15 +13,6 @@ #define APCI3501_DO_REG 0x40 #define APCI3501_DI_REG 0x50 -struct apci3501_private { - int i_IobaseAmcc; - struct task_struct *tsk_Current; - unsigned char b_TimerSelectMode; - unsigned char b_InterruptMode; -}; - -#include "addi-data/hwdrv_apci3501.c" - /* * AMCC S5933 NVRAM */ @@ -42,6 +33,15 @@ struct apci3501_private { #define EEPROM_WATCHDOG 5 #define EEPROM_TIMER_WATCHDOG_COUNTER 10 +struct apci3501_private { + int i_IobaseAmcc; + struct task_struct *tsk_Current; + unsigned char b_TimerSelectMode; + unsigned char b_InterruptMode; +}; + +#include "addi-data/hwdrv_apci3501.c" + static int apci3501_di_insn_bits(struct comedi_device *dev, struct comedi_subdevice *s, struct comedi_insn *insn, |