Commit 3d41c443 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: addi-data: move the main #include's to the drivers

The addi-data drivers are all built by the main driver files including
addi-data/addi_common.c. That file then includes other files depending
on what driver is being compiled. This is makes the code quite messy
and hard to follow.

Start cleaning it up by removing the unneeded #include's in addi_common.c
and moving the some of the comedi #include's into the individual driver
files.

This is the first step in getting rid of the #ifdef'ery in addi_common.c.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3974c5c0
......@@ -46,28 +46,6 @@ You should also find the complete GPL in the COPYING file accompanying this sour
+----------+-----------+------------------------------------------------+
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/timex.h>
#include <linux/timer.h>
#include <linux/pci.h>
#include <linux/gfp.h>
#include <linux/io.h>
#include "../../comedidev.h"
#if defined(CONFIG_APCI_1710) || defined(CONFIG_APCI_3200) || defined(CONFIG_APCI_3300)
#include <asm/i387.h>
#endif
#include "../comedi_fc.h"
#include "addi_common.h"
#include "addi_amcc_s5933.h"
#ifndef ADDIDATA_DRIVER_NAME
#define ADDIDATA_DRIVER_NAME "addi_common"
#endif
......
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_035 1
#define ADDIDATA_WATCHDOG 2 /* Or shold it be something else */
......
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_1032 1
#define ADDIDATA_DRIVER_NAME "addi_apci_1032"
......
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_1500 1
#define ADDIDATA_DRIVER_NAME "addi_apci_1500"
......
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_1516 1
#define ADDIDATA_DRIVER_NAME "addi_apci_1516"
......
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_1564 1
#define ADDIDATA_DRIVER_NAME "addi_apci_1564"
......
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_16XX 1
#define ADDIDATA_DRIVER_NAME "addi_apci_16xx"
......
#include <asm/i387.h>
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_1710 1
#define ADDIDATA_DRIVER_NAME "addi_apci_1710"
......
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_2016 1
#define ADDIDATA_DRIVER_NAME "addi_apci_2016"
......
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_2032 1
#define ADDIDATA_DRIVER_NAME "addi_apci_2032"
......
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_2200 1
#define ADDIDATA_DRIVER_NAME "addi_apci_2200"
......
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_3001 1
#define ADDIDATA_DRIVER_NAME "addi_apci_3001"
......
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_3120 1
#define ADDIDATA_DRIVER_NAME "addi_apci_3120"
......
#include <asm/i387.h>
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_3200 1
#define ADDIDATA_DRIVER_NAME "addi_apci_3200"
......
#include <asm/i387.h>
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_3300 1
#define ADDIDATA_DRIVER_NAME "addi_apci_3300"
......
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_3501 1
#define ADDIDATA_DRIVER_NAME "addi_apci_3501"
......
#include "../comedidev.h"
#include "comedi_fc.h"
#include "addi-data/addi_common.h"
#include "addi-data/addi_amcc_s5933.h"
#define CONFIG_APCI_3XXX 1
#define ADDIDATA_DRIVER_NAME "addi_apci_3xxx"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment