summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:05:25 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:53:56 -0700
commit139dfbdfacb02e3ef3df936d2fabd1ad5f14ea88 (patch)
treef31facb21b85d6a9ebc4f7d9daa840a8149f8a3f
parentd163679ceec20c50f9aee880fa76c0c1185244a8 (diff)
Staging: comedi: Remove comedi_driver typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/comedi/comedidev.h11
-rw-r--r--drivers/staging/comedi/drivers.c18
-rw-r--r--drivers/staging/comedi/drivers/8255.c2
-rw-r--r--drivers/staging/comedi/drivers/acl7225b.c2
-rw-r--r--drivers/staging/comedi/drivers/addi-data/addi_common.c2
-rw-r--r--drivers/staging/comedi/drivers/adl_pci6208.c2
-rw-r--r--drivers/staging/comedi/drivers/adl_pci7296.c2
-rw-r--r--drivers/staging/comedi/drivers/adl_pci7432.c2
-rw-r--r--drivers/staging/comedi/drivers/adl_pci8164.c2
-rw-r--r--drivers/staging/comedi/drivers/adl_pci9111.c2
-rw-r--r--drivers/staging/comedi/drivers/adl_pci9118.c2
-rw-r--r--drivers/staging/comedi/drivers/adq12b.c4
-rw-r--r--drivers/staging/comedi/drivers/adv_pci1710.c2
-rw-r--r--drivers/staging/comedi/drivers/adv_pci1723.c4
-rw-r--r--drivers/staging/comedi/drivers/adv_pci_dio.c2
-rw-r--r--drivers/staging/comedi/drivers/aio_aio12_8.c2
-rw-r--r--drivers/staging/comedi/drivers/aio_iiro_16.c2
-rw-r--r--drivers/staging/comedi/drivers/amplc_dio200.c4
-rw-r--r--drivers/staging/comedi/drivers/amplc_pc236.c4
-rw-r--r--drivers/staging/comedi/drivers/amplc_pc263.c4
-rw-r--r--drivers/staging/comedi/drivers/amplc_pci224.c4
-rw-r--r--drivers/staging/comedi/drivers/amplc_pci230.c4
-rw-r--r--drivers/staging/comedi/drivers/c6xdigio.c2
-rw-r--r--drivers/staging/comedi/drivers/cb_das16_cs.c2
-rw-r--r--drivers/staging/comedi/drivers/cb_pcidas.c4
-rw-r--r--drivers/staging/comedi/drivers/cb_pcidas64.c2
-rw-r--r--drivers/staging/comedi/drivers/cb_pcidda.c4
-rw-r--r--drivers/staging/comedi/drivers/cb_pcidio.c4
-rw-r--r--drivers/staging/comedi/drivers/cb_pcimdas.c4
-rw-r--r--drivers/staging/comedi/drivers/cb_pcimdda.c4
-rw-r--r--drivers/staging/comedi/drivers/comedi_bond.c6
-rw-r--r--drivers/staging/comedi/drivers/comedi_parport.c2
-rw-r--r--drivers/staging/comedi/drivers/comedi_rt_timer.c2
-rw-r--r--drivers/staging/comedi/drivers/comedi_test.c2
-rw-r--r--drivers/staging/comedi/drivers/contec_pci_dio.c2
-rw-r--r--drivers/staging/comedi/drivers/daqboard2000.c2
-rw-r--r--drivers/staging/comedi/drivers/das08.c2
-rw-r--r--drivers/staging/comedi/drivers/das08_cs.c2
-rw-r--r--drivers/staging/comedi/drivers/das16.c2
-rw-r--r--drivers/staging/comedi/drivers/das16m1.c2
-rw-r--r--drivers/staging/comedi/drivers/das1800.c2
-rw-r--r--drivers/staging/comedi/drivers/das6402.c2
-rw-r--r--drivers/staging/comedi/drivers/das800.c2
-rw-r--r--drivers/staging/comedi/drivers/dmm32at.c6
-rw-r--r--drivers/staging/comedi/drivers/dt2801.c2
-rw-r--r--drivers/staging/comedi/drivers/dt2811.c2
-rw-r--r--drivers/staging/comedi/drivers/dt2814.c2
-rw-r--r--drivers/staging/comedi/drivers/dt2815.c2
-rw-r--r--drivers/staging/comedi/drivers/dt2817.c2
-rw-r--r--drivers/staging/comedi/drivers/dt282x.c2
-rw-r--r--drivers/staging/comedi/drivers/dt3000.c2
-rw-r--r--drivers/staging/comedi/drivers/dt9812.c2
-rw-r--r--drivers/staging/comedi/drivers/fl512.c2
-rw-r--r--drivers/staging/comedi/drivers/gsc_hpdi.c2
-rw-r--r--drivers/staging/comedi/drivers/icp_multi.c2
-rw-r--r--drivers/staging/comedi/drivers/ii_pci20kc.c2
-rw-r--r--drivers/staging/comedi/drivers/jr3_pci.c2
-rw-r--r--drivers/staging/comedi/drivers/ke_counter.c2
-rw-r--r--drivers/staging/comedi/drivers/me4000.c2
-rw-r--r--drivers/staging/comedi/drivers/me_daq.c3
-rw-r--r--drivers/staging/comedi/drivers/mpc624.c2
-rw-r--r--drivers/staging/comedi/drivers/mpc8260cpm.c2
-rw-r--r--drivers/staging/comedi/drivers/multiq3.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_6527.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_65xx.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_660x.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_670x.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_at_a2150.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_at_ao.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_atmio.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_atmio16d.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_daq_700.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_daq_dio24.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_labpc.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_labpc_cs.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_mio_cs.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_pcidio.c2
-rw-r--r--drivers/staging/comedi/drivers/ni_pcimio.c2
-rw-r--r--drivers/staging/comedi/drivers/pcl711.c2
-rw-r--r--drivers/staging/comedi/drivers/pcl724.c2
-rw-r--r--drivers/staging/comedi/drivers/pcl725.c2
-rw-r--r--drivers/staging/comedi/drivers/pcl726.c2
-rw-r--r--drivers/staging/comedi/drivers/pcl730.c2
-rw-r--r--drivers/staging/comedi/drivers/pcl812.c2
-rw-r--r--drivers/staging/comedi/drivers/pcl816.c2
-rw-r--r--drivers/staging/comedi/drivers/pcl818.c2
-rw-r--r--drivers/staging/comedi/drivers/pcm3724.c2
-rw-r--r--drivers/staging/comedi/drivers/pcm3730.c2
-rw-r--r--drivers/staging/comedi/drivers/pcmad.c2
-rw-r--r--drivers/staging/comedi/drivers/pcmda12.c4
-rw-r--r--drivers/staging/comedi/drivers/pcmmio.c4
-rw-r--r--drivers/staging/comedi/drivers/pcmuio.c4
-rw-r--r--drivers/staging/comedi/drivers/poc.c2
-rw-r--r--drivers/staging/comedi/drivers/quatech_daqp_cs.c2
-rw-r--r--drivers/staging/comedi/drivers/rtd520.c4
-rw-r--r--drivers/staging/comedi/drivers/rti800.c2
-rw-r--r--drivers/staging/comedi/drivers/rti802.c2
-rw-r--r--drivers/staging/comedi/drivers/s526.c4
-rw-r--r--drivers/staging/comedi/drivers/s626.c2
-rw-r--r--drivers/staging/comedi/drivers/serial2002.c2
-rw-r--r--drivers/staging/comedi/drivers/skel.c6
-rw-r--r--drivers/staging/comedi/drivers/ssv_dnp.c4
-rw-r--r--drivers/staging/comedi/drivers/unioxx5.c2
-rw-r--r--drivers/staging/comedi/drivers/usbdux.c2
-rw-r--r--drivers/staging/comedi/drivers/usbduxfast.c2
-rw-r--r--drivers/staging/comedi/proc.c4
106 files changed, 144 insertions, 144 deletions
diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h
index 1fdb093f9318..83c45a691bdd 100644
--- a/drivers/staging/comedi/comedidev.h
+++ b/drivers/staging/comedi/comedidev.h
@@ -121,7 +121,6 @@
#define COMEDI_NUM_BOARD_MINORS 0x30
#define COMEDI_FIRST_SUBDEVICE_MINOR COMEDI_NUM_BOARD_MINORS
-typedef struct comedi_driver_struct comedi_driver;
typedef struct comedi_lrange_struct comedi_lrange;
typedef struct device device_create_result_type;
@@ -239,8 +238,8 @@ struct comedi_async {
unsigned int x);
};
-struct comedi_driver_struct {
- struct comedi_driver_struct *next;
+struct comedi_driver {
+ struct comedi_driver *next;
const char *driver_name;
struct module *module;
@@ -256,7 +255,7 @@ struct comedi_driver_struct {
struct comedi_device {
int use_count;
- comedi_driver *driver;
+ struct comedi_driver *driver;
void *private;
device_create_result_type *class_dev;
@@ -343,8 +342,8 @@ static inline struct comedi_subdevice *comedi_get_write_subdevice(
void comedi_device_detach(struct comedi_device *dev);
int comedi_device_attach(struct comedi_device *dev, comedi_devconfig *it);
-int comedi_driver_register(comedi_driver *);
-int comedi_driver_unregister(comedi_driver *);
+int comedi_driver_register(struct comedi_driver *);
+int comedi_driver_unregister(struct comedi_driver *);
void init_polling(void);
void cleanup_polling(void);
diff --git a/drivers/staging/comedi/drivers.c b/drivers/staging/comedi/drivers.c
index 30e3beb6e97b..2d09a01c86c3 100644
--- a/drivers/staging/comedi/drivers.c
+++ b/drivers/staging/comedi/drivers.c
@@ -50,13 +50,13 @@
static int postconfig(struct comedi_device *dev);
static int insn_rw_emulate_bits(struct comedi_device *dev, struct comedi_subdevice *s,
comedi_insn *insn, unsigned int *data);
-static void *comedi_recognize(comedi_driver * driv, const char *name);
-static void comedi_report_boards(comedi_driver *driv);
+static void *comedi_recognize(struct comedi_driver * driv, const char *name);
+static void comedi_report_boards(struct comedi_driver *driv);
static int poll_invalid(struct comedi_device *dev, struct comedi_subdevice *s);
int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
unsigned long new_size);
-comedi_driver *comedi_drivers;
+struct comedi_driver *comedi_drivers;
int comedi_modprobe(int minor)
{
@@ -115,7 +115,7 @@ void comedi_device_detach(struct comedi_device *dev)
int comedi_device_attach(struct comedi_device *dev, comedi_devconfig *it)
{
- comedi_driver *driv;
+ struct comedi_driver *driv;
int ret;
if (dev->attached)
@@ -180,7 +180,7 @@ attached:
return 0;
}
-int comedi_driver_register(comedi_driver *driver)
+int comedi_driver_register(struct comedi_driver *driver)
{
driver->next = comedi_drivers;
comedi_drivers = driver;
@@ -188,9 +188,9 @@ int comedi_driver_register(comedi_driver *driver)
return 0;
}
-int comedi_driver_unregister(comedi_driver *driver)
+int comedi_driver_unregister(struct comedi_driver *driver)
{
- comedi_driver *prev;
+ struct comedi_driver *prev;
int i;
/* check for devices using this driver */
@@ -298,7 +298,7 @@ static int postconfig(struct comedi_device *dev)
}
/* generic recognize function for drivers that register their supported board names */
-void *comedi_recognize(comedi_driver * driv, const char *name)
+void *comedi_recognize(struct comedi_driver * driv, const char *name)
{
unsigned i;
const char *const *name_ptr = driv->board_name;
@@ -313,7 +313,7 @@ void *comedi_recognize(comedi_driver * driv, const char *name)
return NULL;
}
-void comedi_report_boards(comedi_driver *driv)
+void comedi_report_boards(struct comedi_driver *driv)
{
unsigned int i;
const char *const *name_ptr;
diff --git a/drivers/staging/comedi/drivers/8255.c b/drivers/staging/comedi/drivers/8255.c
index e4920ae934ae..6e1786059d22 100644
--- a/drivers/staging/comedi/drivers/8255.c
+++ b/drivers/staging/comedi/drivers/8255.c
@@ -107,7 +107,7 @@ struct subdev_8255_struct {
static int dev_8255_attach(struct comedi_device *dev, comedi_devconfig * it);
static int dev_8255_detach(struct comedi_device *dev);
-static comedi_driver driver_8255 = {
+static struct comedi_driver driver_8255 = {
driver_name:"8255",
module:THIS_MODULE,
attach:dev_8255_attach,
diff --git a/drivers/staging/comedi/drivers/acl7225b.c b/drivers/staging/comedi/drivers/acl7225b.c
index f273a6f0094e..235dcfea49d4 100644
--- a/drivers/staging/comedi/drivers/acl7225b.c
+++ b/drivers/staging/comedi/drivers/acl7225b.c
@@ -38,7 +38,7 @@ static const boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
#define this_board ((const boardtype *)dev->board_ptr)
-static comedi_driver driver_acl7225b = {
+static struct comedi_driver driver_acl7225b = {
driver_name:"acl7225b",
module:THIS_MODULE,
attach:acl7225b_attach,
diff --git a/drivers/staging/comedi/drivers/addi-data/addi_common.c b/drivers/staging/comedi/drivers/addi-data/addi_common.c
index 49d6332d9db2..718c4be560f0 100644
--- a/drivers/staging/comedi/drivers/addi-data/addi_common.c
+++ b/drivers/staging/comedi/drivers/addi-data/addi_common.c
@@ -2527,7 +2527,7 @@ static const boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
-comedi_driver driver_addi = {
+struct comedi_driver driver_addi = {
driver_name:"addi_common",
module:THIS_MODULE,
attach:i_ADDI_Attach,
diff --git a/drivers/staging/comedi/drivers/adl_pci6208.c b/drivers/staging/comedi/drivers/adl_pci6208.c
index 9e1597caf21d..9572f04c4cdd 100644
--- a/drivers/staging/comedi/drivers/adl_pci6208.c
+++ b/drivers/staging/comedi/drivers/adl_pci6208.c
@@ -112,7 +112,7 @@ static int pci6208_detach(struct comedi_device * dev);
#define pci6208_board_nbr \
(sizeof(pci6208_boards) / sizeof(pci6208_board))
-static comedi_driver driver_pci6208 = {
+static struct comedi_driver driver_pci6208 = {
driver_name:PCI6208_DRIVER_NAME,
module:THIS_MODULE,
attach:pci6208_attach,
diff --git a/drivers/staging/comedi/drivers/adl_pci7296.c b/drivers/staging/comedi/drivers/adl_pci7296.c
index f38aa06d3c4e..21b8ba80dac9 100644
--- a/drivers/staging/comedi/drivers/adl_pci7296.c
+++ b/drivers/staging/comedi/drivers/adl_pci7296.c
@@ -65,7 +65,7 @@ typedef struct {
static int adl_pci7296_attach(struct comedi_device * dev, comedi_devconfig * it);
static int adl_pci7296_detach(struct comedi_device * dev);
-static comedi_driver driver_adl_pci7296 = {
+static struct comedi_driver driver_adl_pci7296 = {
driver_name:"adl_pci7296",
module:THIS_MODULE,
attach:adl_pci7296_attach,
diff --git a/drivers/staging/comedi/drivers/adl_pci7432.c b/drivers/staging/comedi/drivers/adl_pci7432.c
index a36be5e14f63..7e8741e51cec 100644
--- a/drivers/staging/comedi/drivers/adl_pci7432.c
+++ b/drivers/staging/comedi/drivers/adl_pci7432.c
@@ -60,7 +60,7 @@ typedef struct {
static int adl_pci7432_attach(struct comedi_device * dev, comedi_devconfig * it);
static int adl_pci7432_detach(struct comedi_device * dev);
-static comedi_driver driver_adl_pci7432 = {
+static struct comedi_driver driver_adl_pci7432 = {
driver_name:"adl_pci7432",
module:THIS_MODULE,
attach:adl_pci7432_attach,
diff --git a/drivers/staging/comedi/drivers/adl_pci8164.c b/drivers/staging/comedi/drivers/adl_pci8164.c
index cc95acf762f8..fd925f5d86f6 100644
--- a/drivers/staging/comedi/drivers/adl_pci8164.c
+++ b/drivers/staging/comedi/drivers/adl_pci8164.c
@@ -72,7 +72,7 @@ typedef struct {
static int adl_pci8164_attach(struct comedi_device * dev, comedi_devconfig * it);
static int adl_pci8164_detach(struct comedi_device * dev);
-static comedi_driver driver_adl_pci8164 = {
+static struct comedi_driver driver_adl_pci8164 = {
driver_name:"adl_pci8164",
module:THIS_MODULE,
attach:adl_pci8164_attach,
diff --git a/drivers/staging/comedi/drivers/adl_pci9111.c b/drivers/staging/comedi/drivers/adl_pci9111.c
index cc6b1c6713c4..8b4c201aa4af 100644
--- a/drivers/staging/comedi/drivers/adl_pci9111.c
+++ b/drivers/staging/comedi/drivers/adl_pci9111.c
@@ -326,7 +326,7 @@ static const pci9111_board_struct pci9111_boards[] = {
#define pci9111_board_nbr \
(sizeof(pci9111_boards)/sizeof(pci9111_board_struct))
-static comedi_driver pci9111_driver = {
+static struct comedi_driver pci9111_driver = {
driver_name:PCI9111_DRIVER_NAME,
module:THIS_MODULE,
attach:pci9111_attach,
diff --git a/drivers/staging/comedi/drivers/adl_pci9118.c b/drivers/staging/comedi/drivers/adl_pci9118.c
index 67e26a3c847c..e2a6c29534d2 100644
--- a/drivers/staging/comedi/drivers/adl_pci9118.c
+++ b/drivers/staging/comedi/drivers/adl_pci9118.c
@@ -229,7 +229,7 @@ static const boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
-static comedi_driver driver_pci9118 = {
+static struct comedi_driver driver_pci9118 = {
driver_name:"adl_pci9118",
module:THIS_MODULE,
attach:pci9118_attach,
diff --git a/drivers/staging/comedi/drivers/adq12b.c b/drivers/staging/comedi/drivers/adq12b.c
index 99a7a0562082..b5a328116807 100644
--- a/drivers/staging/comedi/drivers/adq12b.c
+++ b/drivers/staging/comedi/drivers/adq12b.c
@@ -157,14 +157,14 @@ typedef struct{
#define devpriv ((adq12b_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int adq12b_attach(struct comedi_device *dev,comedi_devconfig *it);
static int adq12b_detach(struct comedi_device *dev);
-static comedi_driver driver_adq12b={
+static struct comedi_driver driver_adq12b={
driver_name: "adq12b",
module: THIS_MODULE,
attach: adq12b_attach,
diff --git a/drivers/staging/comedi/drivers/adv_pci1710.c b/drivers/staging/comedi/drivers/adv_pci1710.c
index e66c2560b2cd..776f93dc5ecb 100644
--- a/drivers/staging/comedi/drivers/adv_pci1710.c
+++ b/drivers/staging/comedi/drivers/adv_pci1710.c
@@ -256,7 +256,7 @@ static const boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
-static comedi_driver driver_pci1710 = {
+static struct comedi_driver driver_pci1710 = {
.driver_name = DRV_NAME,
.module = THIS_MODULE,
.attach = pci1710_attach,
diff --git a/drivers/staging/comedi/drivers/adv_pci1723.c b/drivers/staging/comedi/drivers/adv_pci1723.c
index 8209e60c783c..5ce393043d17 100644
--- a/drivers/staging/comedi/drivers/adv_pci1723.c
+++ b/drivers/staging/comedi/drivers/adv_pci1723.c
@@ -138,7 +138,7 @@ static DEFINE_PCI_DEVICE_TABLE(pci1723_pci_table) = {
MODULE_DEVICE_TABLE(pci, pci1723_pci_table);
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
@@ -148,7 +148,7 @@ static int pci1723_detach(struct comedi_device * dev);
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
-static comedi_driver driver_pci1723 = {
+static struct comedi_driver driver_pci1723 = {
driver_name:"adv_pci1723",
module:THIS_MODULE,
attach:pci1723_attach,
diff --git a/drivers/staging/comedi/drivers/adv_pci_dio.c b/drivers/staging/comedi/drivers/adv_pci_dio.c
index e0e62ea57f7e..5fcba548a786 100644
--- a/drivers/staging/comedi/drivers/adv_pci_dio.c
+++ b/drivers/staging/comedi/drivers/adv_pci_dio.c
@@ -322,7 +322,7 @@ static const boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
-static comedi_driver driver_pci_dio = {
+static struct comedi_driver driver_pci_dio = {
driver_name:"adv_pci_dio",
module:THIS_MODULE,
attach:pci_dio_attach,
diff --git a/drivers/staging/comedi/drivers/aio_aio12_8.c b/drivers/staging/comedi/drivers/aio_aio12_8.c
index 5b62ec9608a8..4c569ddb195e 100644
--- a/drivers/staging/comedi/drivers/aio_aio12_8.c
+++ b/drivers/staging/comedi/drivers/aio_aio12_8.c
@@ -213,7 +213,7 @@ static int aio_aio12_8_detach(struct comedi_device * dev)
return 0;
}
-static comedi_driver driver_aio_aio12_8 = {
+static struct comedi_driver driver_aio_aio12_8 = {
driver_name:"aio_aio12_8",
module:THIS_MODULE,
attach:aio_aio12_8_attach,
diff --git a/drivers/staging/comedi/drivers/aio_iiro_16.c b/drivers/staging/comedi/drivers/aio_iiro_16.c
index 0e3f8d5aa06c..b04ad03c85e7 100644
--- a/drivers/staging/comedi/drivers/aio_iiro_16.c
+++ b/drivers/staging/comedi/drivers/aio_iiro_16.c
@@ -71,7 +71,7 @@ static int aio_iiro_16_attach(struct comedi_device * dev, comedi_devconfig * it)
static int aio_iiro_16_detach(struct comedi_device * dev);
-static comedi_driver driver_aio_iiro_16 = {
+static struct comedi_driver driver_aio_iiro_16 = {
driver_name:"aio_iiro_16",
module:THIS_MODULE,
attach:aio_iiro_16_attach,
diff --git a/drivers/staging/comedi/drivers/amplc_dio200.c b/drivers/staging/comedi/drivers/amplc_dio200.c
index f34e45028256..6323b571f61e 100644
--- a/drivers/staging/comedi/drivers/amplc_dio200.c
+++ b/drivers/staging/comedi/drivers/amplc_dio200.c
@@ -468,14 +468,14 @@ typedef struct {
} dio200_subdev_intr;
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int dio200_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dio200_detach(struct comedi_device * dev);
-static comedi_driver driver_amplc_dio200 = {
+static struct comedi_driver driver_amplc_dio200 = {
driver_name:DIO200_DRIVER_NAME,
module:THIS_MODULE,
attach:dio200_attach,
diff --git a/drivers/staging/comedi/drivers/amplc_pc236.c b/drivers/staging/comedi/drivers/amplc_pc236.c
index ba91debae962..f9cc28317302 100644
--- a/drivers/staging/comedi/drivers/amplc_pc236.c
+++ b/drivers/staging/comedi/drivers/amplc_pc236.c
@@ -160,14 +160,14 @@ typedef struct {
#define devpriv ((pc236_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int pc236_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pc236_detach(struct comedi_device * dev);
-static comedi_driver driver_amplc_pc236 = {
+static struct comedi_driver driver_amplc_pc236 = {
driver_name:PC236_DRIVER_NAME,
module:THIS_MODULE,
attach:pc236_attach,
diff --git a/drivers/staging/comedi/drivers/amplc_pc263.c b/drivers/staging/comedi/drivers/amplc_pc263.c
index 43bd5324be4a..313f4a094653 100644
--- a/drivers/staging/comedi/drivers/amplc_pc263.c
+++ b/drivers/staging/comedi/drivers/amplc_pc263.c
@@ -127,14 +127,14 @@ typedef struct {
#endif /* CONFIG_COMEDI_PCI */
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int pc263_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pc263_detach(struct comedi_device * dev);
-static comedi_driver driver_amplc_pc263 = {
+static struct comedi_driver driver_amplc_pc263 = {
driver_name:PC263_DRIVER_NAME,
module:THIS_MODULE,
attach:pc263_attach,
diff --git a/drivers/staging/comedi/drivers/amplc_pci224.c b/drivers/staging/comedi/drivers/amplc_pci224.c
index e575f7deb31d..4ca283bb58ae 100644
--- a/drivers/staging/comedi/drivers/amplc_pci224.c
+++ b/drivers/staging/comedi/drivers/amplc_pci224.c
@@ -421,14 +421,14 @@ typedef struct {
#define devpriv ((pci224_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int pci224_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pci224_detach(struct comedi_device * dev);
-static comedi_driver driver_amplc_pci224 = {
+static struct comedi_driver driver_amplc_pci224 = {
driver_name:DRIVER_NAME,
module:THIS_MODULE,
attach:pci224_attach,
diff --git a/drivers/staging/comedi/drivers/amplc_pci230.c b/drivers/staging/comedi/drivers/amplc_pci230.c
index 99ffbd2a961c..7676f22772bf 100644
--- a/drivers/staging/comedi/drivers/amplc_pci230.c
+++ b/drivers/staging/comedi/drivers/amplc_pci230.c
@@ -596,14 +596,14 @@ static const comedi_lrange pci230_ao_range = { 2, {
static const unsigned char pci230_ao_bipolar[2] = { 0, 1 };
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int pci230_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pci230_detach(struct comedi_device * dev);
-static comedi_driver driver_amplc_pci230 = {
+static struct comedi_driver driver_amplc_pci230 = {
driver_name:"amplc_pci230",
module:THIS_MODULE,
attach:pci230_attach,
diff --git a/drivers/staging/comedi/drivers/c6xdigio.c b/drivers/staging/comedi/drivers/c6xdigio.c
index afe3550fe8f1..612a04afb294 100644
--- a/drivers/staging/comedi/drivers/c6xdigio.c
+++ b/drivers/staging/comedi/drivers/c6xdigio.c
@@ -99,7 +99,7 @@ union encvaluetype {
static int c6xdigio_attach(struct comedi_device * dev, comedi_devconfig * it);
static int c6xdigio_detach(struct comedi_device * dev);
-comedi_driver driver_c6xdigio = {
+struct comedi_driver driver_c6xdigio = {
driver_name:"c6xdigio",
module:THIS_MODULE,
attach:c6xdigio_attach,
diff --git a/drivers/staging/comedi/drivers/cb_das16_cs.c b/drivers/staging/comedi/drivers/cb_das16_cs.c
index ad01884479c0..d16a9278db10 100644
--- a/drivers/staging/comedi/drivers/cb_das16_cs.c
+++ b/drivers/staging/comedi/drivers/cb_das16_cs.c
@@ -91,7 +91,7 @@ typedef struct {
static int das16cs_attach(struct comedi_device * dev, comedi_devconfig * it);
static int das16cs_detach(struct comedi_device * dev);
-static comedi_driver driver_das16cs = {
+static struct comedi_driver driver_das16cs = {
driver_name:"cb_das16_cs",
module:THIS_MODULE,
attach:das16cs_attach,
diff --git a/drivers/staging/comedi/drivers/cb_pcidas.c b/drivers/staging/comedi/drivers/cb_pcidas.c
index 53fa8ee0fb7b..75bf1d173509 100644
--- a/drivers/staging/comedi/drivers/cb_pcidas.c
+++ b/drivers/staging/comedi/drivers/cb_pcidas.c
@@ -435,14 +435,14 @@ typedef struct {
#define devpriv ((cb_pcidas_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int cb_pcidas_attach(struct comedi_device * dev, comedi_devconfig * it);
static int cb_pcidas_detach(struct comedi_device * dev);
-static comedi_driver driver_cb_pcidas = {
+static struct comedi_driver driver_cb_pcidas = {
driver_name:"cb_pcidas",
module:THIS_MODULE,
attach:cb_pcidas_attach,
diff --git a/drivers/staging/comedi/drivers/cb_pcidas64.c b/drivers/staging/comedi/drivers/cb_pcidas64.c
index 345eeb6241bf..ea55c2bf3e78 100644
--- a/drivers/staging/comedi/drivers/cb_pcidas64.c
+++ b/drivers/staging/comedi/drivers/cb_pcidas64.c
@@ -1127,7 +1127,7 @@ static inline pcidas64_private *priv(struct comedi_device * dev)
*/
static int attach(struct comedi_device * dev, comedi_devconfig * it);
static int detach(struct comedi_device * dev);
-static comedi_driver driver_cb_pcidas = {
+static struct comedi_driver driver_cb_pcidas = {
driver_name:"cb_pcidas64",
module:THIS_MODULE,
attach:attach,
diff --git a/drivers/staging/comedi/drivers/cb_pcidda.c b/drivers/staging/comedi/drivers/cb_pcidda.c
index 474ffedc6daa..dc107d1df261 100644
--- a/drivers/staging/comedi/drivers/cb_pcidda.c
+++ b/drivers/staging/comedi/drivers/cb_pcidda.c
@@ -249,12 +249,12 @@ static void cb_pcidda_calibrate(struct comedi_device * dev, unsigned int channel
unsigned int range);
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
-static comedi_driver driver_cb_pcidda = {
+static struct comedi_driver driver_cb_pcidda = {
driver_name:"cb_pcidda",
module:THIS_MODULE,
attach:cb_pcidda_attach,
diff --git a/drivers/staging/comedi/drivers/cb_pcidio.c b/drivers/staging/comedi/drivers/cb_pcidio.c
index 7f749bd61b58..61da4f0bab55 100644
--- a/drivers/staging/comedi/drivers/cb_pcidio.c
+++ b/drivers/staging/comedi/drivers/cb_pcidio.c
@@ -122,14 +122,14 @@ typedef struct {
#define devpriv ((pcidio_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int pcidio_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcidio_detach(struct comedi_device * dev);
-static comedi_driver driver_cb_pcidio = {
+static struct comedi_driver driver_cb_pcidio = {
driver_name:"cb_pcidio",
module:THIS_MODULE,
attach:pcidio_attach,
diff --git a/drivers/staging/comedi/drivers/cb_pcimdas.c b/drivers/staging/comedi/drivers/cb_pcimdas.c
index 435bb39e8e46..0e739a567eb9 100644
--- a/drivers/staging/comedi/drivers/cb_pcimdas.c
+++ b/drivers/staging/comedi/drivers/cb_pcimdas.c
@@ -170,14 +170,14 @@ typedef struct {
#define devpriv ((cb_pcimdas_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int cb_pcimdas_attach(struct comedi_device * dev, comedi_devconfig * it);
static int cb_pcimdas_detach(struct comedi_device * dev);
-static comedi_driver driver_cb_pcimdas = {
+static struct comedi_driver driver_cb_pcimdas = {
driver_name:"cb_pcimdas",
module:THIS_MODULE,
attach:cb_pcimdas_attach,
diff --git a/drivers/staging/comedi/drivers/cb_pcimdda.c b/drivers/staging/comedi/drivers/cb_pcimdda.c
index 2b953c2e1959..976b789c27e0 100644
--- a/drivers/staging/comedi/drivers/cb_pcimdda.c
+++ b/drivers/staging/comedi/drivers/cb_pcimdda.c
@@ -176,14 +176,14 @@ typedef struct {
#define devpriv ((private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int attach(struct comedi_device * dev, comedi_devconfig * it);
static int detach(struct comedi_device * dev);
-static comedi_driver cb_pcimdda_driver = {
+static struct comedi_driver cb_pcimdda_driver = {
driver_name:"cb_pcimdda",
module:THIS_MODULE,
attach:attach,
diff --git a/drivers/staging/comedi/drivers/comedi_bond.c b/drivers/staging/comedi/drivers/comedi_bond.c
index aa6892254f39..deba16fb2fa8 100644
--- a/drivers/staging/comedi/drivers/comedi_bond.c
+++ b/drivers/staging/comedi/drivers/comedi_bond.c
@@ -59,7 +59,7 @@ Configuration Options:
* Devices: a full list of the boards that attempt to be supported by
* the driver. Format is "(manufacturer) board name [comedi name]",
* where comedi_name is the name that is used to configure the board.
- * See the comment near board_name: in the comedi_driver structure
+ * See the comment near board_name: in the struct comedi_driver structure
* below. If (manufacturer) or [comedi name] is missing, the previous
* value is used.
* Author: you
@@ -171,7 +171,7 @@ struct Private {
#define devpriv ((struct Private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
@@ -185,7 +185,7 @@ static void doDevUnconfig(struct comedi_device *dev);
* what can I say? I like to do wasteful memcopies.. :) */
static void *Realloc(const void *ptr, size_t len, size_t old_len);
-static comedi_driver driver_bonding = {
+static struct comedi_driver driver_bonding = {
.driver_name = MODULE_NAME,
.module = THIS_MODULE,
.attach = bonding_attach,
diff --git a/drivers/staging/comedi/drivers/comedi_parport.c b/drivers/staging/comedi/drivers/comedi_parport.c
index 50790b651cef..774a72722899 100644
--- a/drivers/staging/comedi/drivers/comedi_parport.c
+++ b/drivers/staging/comedi/drivers/comedi_parport.c
@@ -92,7 +92,7 @@ pin, which can be used to wake up tasks.
static int parport_attach(struct comedi_device *dev, comedi_devconfig *it);
static int parport_detach(struct comedi_device *dev);
-static comedi_driver driver_parport = {
+static struct comedi_driver driver_parport = {
.driver_name = "comedi_parport",
.module = THIS_MODULE,
.attach = parport_attach,
diff --git a/drivers/staging/comedi/drivers/comedi_rt_timer.c b/drivers/staging/comedi/drivers/comedi_rt_timer.c
index 93a43bdf3bcf..1ba425fda31a 100644
--- a/drivers/staging/comedi/drivers/comedi_rt_timer.c
+++ b/drivers/staging/comedi/drivers/comedi_rt_timer.c
@@ -128,7 +128,7 @@ static int timer_inttrig(struct comedi_device * dev, struct comedi_subdevice * s
unsigned int trig_num);
static int timer_start_cmd(struct comedi_device * dev, struct comedi_subdevice * s);
-static comedi_driver driver_timer = {
+static struct comedi_driver driver_timer = {
module:THIS_MODULE,
driver_name:"comedi_rt_timer",
attach:timer_attach,
diff --git a/drivers/staging/comedi/drivers/comedi_test.c b/drivers/staging/comedi/drivers/comedi_test.c
index f8baf83c588c..908dddcc5a45 100644
--- a/drivers/staging/comedi/drivers/comedi_test.c
+++ b/drivers/staging/comedi/drivers/comedi_test.c
@@ -95,7 +95,7 @@ struct waveform_private {
static int waveform_attach(struct comedi_device *dev, comedi_devconfig *it);
static int waveform_detach(struct comedi_device *dev);
-static comedi_driver driver_waveform = {
+static struct comedi_driver driver_waveform = {
.driver_name = "comedi_test",
.module = THIS_MODULE,
.attach = waveform_attach,
diff --git a/drivers/staging/comedi/drivers/contec_pci_dio.c b/drivers/staging/comedi/drivers/contec_pci_dio.c
index 0b96859cc3bf..87303081f616 100644
--- a/drivers/staging/comedi/drivers/contec_pci_dio.c
+++ b/drivers/staging/comedi/drivers/contec_pci_dio.c
@@ -77,7 +77,7 @@ typedef struct {
static int contec_attach(struct comedi_device * dev, comedi_devconfig * it);
static int contec_detach(struct comedi_device * dev);
-static comedi_driver driver_contec = {
+static struct comedi_driver driver_contec = {
driver_name:"contec_pci_dio",
module:THIS_MODULE,
attach:contec_attach,
diff --git a/drivers/staging/comedi/drivers/daqboard2000.c b/drivers/staging/comedi/drivers/daqboard2000.c
index 9ef655eec40b..378ec9471778 100644
--- a/drivers/staging/comedi/drivers/daqboard2000.c
+++ b/drivers/staging/comedi/drivers/daqboard2000.c
@@ -299,7 +299,7 @@ typedef struct daqboard2000_hw {
static int daqboard2000_attach(struct comedi_device * dev, comedi_devconfig * it);
static int daqboard2000_detach(struct comedi_device * dev);
-static comedi_driver driver_daqboard2000 = {
+static struct comedi_driver driver_daqboard2000 = {
driver_name:"daqboard2000",
module:THIS_MODULE,
attach:daqboard2000_attach,
diff --git a/drivers/staging/comedi/drivers/das08.c b/drivers/staging/comedi/drivers/das08.c
index a0029dc7e389..e8d8d67d513a 100644
--- a/drivers/staging/comedi/drivers/das08.c
+++ b/drivers/staging/comedi/drivers/das08.c
@@ -829,7 +829,7 @@ static int das08_counter_config(struct comedi_device * dev, struct comedi_subdev
static int das08_attach(struct comedi_device * dev, comedi_devconfig * it);
-static comedi_driver driver_das08 = {
+static struct comedi_driver driver_das08 = {
driver_name: DRV_NAME,
module:THIS_MODULE,
attach:das08_attach,
diff --git a/drivers/staging/comedi/drivers/das08_cs.c b/drivers/staging/comedi/drivers/das08_cs.c
index 0e56f1d762de..310903a89e42 100644
--- a/drivers/staging/comedi/drivers/das08_cs.c
+++ b/drivers/staging/comedi/drivers/das08_cs.c
@@ -58,7 +58,7 @@ static struct pcmcia_device *cur_dev = NULL;
static int das08_cs_attach(struct comedi_device * dev, comedi_devconfig * it);
-static comedi_driver driver_das08_cs = {
+static struct comedi_driver driver_das08_cs = {
driver_name:"das08_cs",
module:THIS_MODULE,
attach:das08_cs_attach,
diff --git a/drivers/staging/comedi/drivers/das16.c b/drivers/staging/comedi/drivers/das16.c
index 7e51137fcf5c..a0998a2efd62 100644
--- a/drivers/staging/comedi/drivers/das16.c
+++ b/drivers/staging/comedi/drivers/das16.c
@@ -700,7 +700,7 @@ static const struct das16_board_struct das16_boards[] = {
static int das16_attach(struct comedi_device * dev, comedi_devconfig * it);
static int das16_detach(struct comedi_device * dev);
-static comedi_driver driver_das16 = {
+static struct comedi_driver driver_das16 = {
driver_name:"das16",
module:THIS_MODULE,
attach:das16_attach,
diff --git a/drivers/staging/comedi/drivers/das16m1.c b/drivers/staging/comedi/drivers/das16m1.c
index 48211a87961e..d87fd21a3bb6 100644
--- a/drivers/staging/comedi/drivers/das16m1.c
+++ b/drivers/staging/comedi/drivers/das16m1.c
@@ -168,7 +168,7 @@ static const das16m1_board das16m1_boards[] = {
static int das16m1_attach(struct comedi_device * dev, comedi_devconfig * it);
static int das16m1_detach(struct comedi_device * dev);
-static comedi_driver driver_das16m1 = {
+static struct comedi_driver driver_das16m1 = {
driver_name:"das16m1",
module:THIS_MODULE,
attach:das16m1_attach,
diff --git a/drivers/staging/comedi/drivers/das1800.c b/drivers/staging/comedi/drivers/das1800.c
index 47d92c70ca0a..2bdb6a33dde4 100644
--- a/drivers/staging/comedi/drivers/das1800.c
+++ b/drivers/staging/comedi/drivers/das1800.c
@@ -504,7 +504,7 @@ static const comedi_lrange range_ao_2 = {
};
*/
-static comedi_driver driver_das1800 = {
+static struct comedi_driver driver_das1800 = {
driver_name:"das1800",
module:THIS_MODULE,
attach:das1800_attach,
diff --git a/drivers/staging/comedi/drivers/das6402.c b/drivers/staging/comedi/drivers/das6402.c
index 6c0a28cb712c..628e11160825 100644
--- a/drivers/staging/comedi/drivers/das6402.c
+++ b/drivers/staging/comedi/drivers/das6402.c
@@ -100,7 +100,7 @@ This driver has suffered bitrot.
static int das6402_attach(struct comedi_device * dev, comedi_devconfig * it);
static int das6402_detach(struct comedi_device * dev);
-static comedi_driver driver_das6402 = {
+static struct comedi_driver driver_das6402 = {
driver_name:"das6402",
module:THIS_MODULE,
attach:das6402_attach,
diff --git a/drivers/staging/comedi/drivers/das800.c b/drivers/staging/comedi/drivers/das800.c
index 92df82216f3e..83422936021f 100644
--- a/drivers/staging/comedi/drivers/das800.c
+++ b/drivers/staging/comedi/drivers/das800.c
@@ -246,7 +246,7 @@ static int das800_attach(struct comedi_device * dev, comedi_devconfig * it);
static int das800_detach(struct comedi_device * dev);
static int das800_cancel(struct comedi_device * dev, struct comedi_subdevice * s);
-static comedi_driver driver_das800 = {
+static struct comedi_driver driver_das800 = {
driver_name:"das800",
module:THIS_MODULE,
attach:das800_attach,
diff --git a/drivers/staging/comedi/drivers/dmm32at.c b/drivers/staging/comedi/drivers/dmm32at.c
index d710dd652053..68c18fff5369 100644
--- a/drivers/staging/comedi/drivers/dmm32at.c
+++ b/drivers/staging/comedi/drivers/dmm32at.c
@@ -46,7 +46,7 @@ Configuration Options:
* Devices: a full list of the boards that attempt to be supported by
* the driver. Format is "(manufacturer) board name [comedi name]",
* where comedi_name is the name that is used to configure the board.
- * See the comment near board_name: in the comedi_driver structure
+ * See the comment near board_name: in the struct comedi_driver structure
* below. If (manufacturer) or [comedi name] is missing, the previous
* value is used.
* Author: you
@@ -253,14 +253,14 @@ typedef struct {
#define devpriv ((dmm32at_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int dmm32at_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dmm32at_detach(struct comedi_device * dev);
-static comedi_driver driver_dmm32at = {
+static struct comedi_driver driver_dmm32at = {
driver_name:"dmm32at",
module:THIS_MODULE,
attach:dmm32at_attach,
diff --git a/drivers/staging/comedi/drivers/dt2801.c b/drivers/staging/comedi/drivers/dt2801.c
index 1f6e4bfa8cd2..944489791da8 100644
--- a/drivers/staging/comedi/drivers/dt2801.c
+++ b/drivers/staging/comedi/drivers/dt2801.c
@@ -90,7 +90,7 @@ Configuration options:
static int dt2801_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt2801_detach(struct comedi_device * dev);
-static comedi_driver driver_dt2801 = {
+static struct comedi_driver driver_dt2801 = {
driver_name:"dt2801",
module:THIS_MODULE,
attach:dt2801_attach,
diff --git a/drivers/staging/comedi/drivers/dt2811.c b/drivers/staging/comedi/drivers/dt2811.c
index ca2e83f3630f..8190ae15878a 100644
--- a/drivers/staging/comedi/drivers/dt2811.c
+++ b/drivers/staging/comedi/drivers/dt2811.c
@@ -214,7 +214,7 @@ static const boardtype boardtypes[] = {
static int dt2811_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt2811_detach(struct comedi_device * dev);
-static comedi_driver driver_dt2811 = {
+static struct comedi_driver driver_dt2811 = {
driver_name:"dt2811",
module:THIS_MODULE,
attach:dt2811_attach,
diff --git a/drivers/staging/comedi/drivers/dt2814.c b/drivers/staging/comedi/drivers/dt2814.c
index f886d1c376ed..eb46d0f5e0db 100644
--- a/drivers/staging/comedi/drivers/dt2814.c
+++ b/drivers/staging/comedi/drivers/dt2814.c
@@ -61,7 +61,7 @@ addition, the clock does not seem to be very accurate.
static int dt2814_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt2814_detach(struct comedi_device * dev);
-static comedi_driver driver_dt2814 = {
+static struct comedi_driver driver_dt2814 = {
driver_name:"dt2814",
module:THIS_MODULE,
attach:dt2814_attach,
diff --git a/drivers/staging/comedi/drivers/dt2815.c b/drivers/staging/comedi/drivers/dt2815.c
index 75b89430be8c..0f45cadca370 100644
--- a/drivers/staging/comedi/drivers/dt2815.c
+++ b/drivers/staging/comedi/drivers/dt2815.c
@@ -77,7 +77,7 @@ static const comedi_lrange range_dt2815_ao_20_current = { 1, {
static int dt2815_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt2815_detach(struct comedi_device * dev);
-static comedi_driver driver_dt2815 = {
+static struct comedi_driver driver_dt2815 = {
driver_name:"dt2815",
module:THIS_MODULE,
attach:dt2815_attach,
diff --git a/drivers/staging/comedi/drivers/dt2817.c b/drivers/staging/comedi/drivers/dt2817.c
index 5e012856a58e..203c6b3e8cbf 100644
--- a/drivers/staging/comedi/drivers/dt2817.c
+++ b/drivers/staging/comedi/drivers/dt2817.c
@@ -49,7 +49,7 @@ Configuration options:
static int dt2817_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt2817_detach(struct comedi_device * dev);
-static comedi_driver driver_dt2817 = {
+static struct comedi_driver driver_dt2817 = {
driver_name:"dt2817",
module:THIS_MODULE,
attach:dt2817_attach,
diff --git a/drivers/staging/comedi/drivers/dt282x.c b/drivers/staging/comedi/drivers/dt282x.c
index 5da648d2399b..bed21029871b 100644
--- a/drivers/staging/comedi/drivers/dt282x.c
+++ b/drivers/staging/comedi/drivers/dt282x.c
@@ -396,7 +396,7 @@ typedef struct {
static int dt282x_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt282x_detach(struct comedi_device * dev);
-static comedi_driver driver_dt282x = {
+static struct comedi_driver driver_dt282x = {
driver_name:"dt282x",
module:THIS_MODULE,
attach:dt282x_attach,
diff --git a/drivers/staging/comedi/drivers/dt3000.c b/drivers/staging/comedi/drivers/dt3000.c
index add9b11fa157..0e29d7f8c71c 100644
--- a/drivers/staging/comedi/drivers/dt3000.c
+++ b/drivers/staging/comedi/drivers/dt3000.c
@@ -273,7 +273,7 @@ typedef struct {
static int dt3000_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt3000_detach(struct comedi_device * dev);
-static comedi_driver driver_dt3000 = {
+static struct comedi_driver driver_dt3000 = {
driver_name:"dt3000",
module:THIS_MODULE,
attach:dt3000_attach,
diff --git a/drivers/staging/comedi/drivers/dt9812.c b/drivers/staging/comedi/drivers/dt9812.c
index 3dd357336fa7..e304a614a97e 100644
--- a/drivers/staging/comedi/drivers/dt9812.c
+++ b/drivers/staging/comedi/drivers/dt9812.c
@@ -1108,7 +1108,7 @@ static int dt9812_detach(struct comedi_device *dev)
return 0;
}
-static comedi_driver dt9812_comedi_driver = {
+static struct comedi_driver dt9812_comedi_driver = {
.module = THIS_MODULE,
.driver_name = "dt9812",
.attach = dt9812_attach,
diff --git a/drivers/staging/comedi/drivers/fl512.c b/drivers/staging/comedi/drivers/fl512.c
index 54f2c2a6c51c..a2f4db9aa4ad 100644
--- a/drivers/staging/comedi/drivers/fl512.c
+++ b/drivers/staging/comedi/drivers/fl512.c
@@ -43,7 +43,7 @@ static const comedi_lrange range_fl512 = { 4, {
static int fl512_attach(struct comedi_device * dev, comedi_devconfig * it);
static int fl512_detach(struct comedi_device * dev);
-static comedi_driver driver_fl512 = {
+static struct comedi_driver driver_fl512 = {
driver_name:"fl512",
module:THIS_MODULE,
attach:fl512_attach,
diff --git a/drivers/staging/comedi/drivers/gsc_hpdi.c b/drivers/staging/comedi/drivers/gsc_hpdi.c
index aefee40710c1..ccc010f40d47 100644
--- a/drivers/staging/comedi/drivers/gsc_hpdi.c
+++ b/drivers/staging/comedi/drivers/gsc_hpdi.c
@@ -327,7 +327,7 @@ static inline hpdi_private *priv(struct comedi_device * dev)
return dev->private;
}
-static comedi_driver driver_hpdi = {
+static struct comedi_driver driver_hpdi = {
driver_name:"gsc_hpdi",
module:THIS_MODULE,
attach:hpdi_attach,
diff --git a/drivers/staging/comedi/drivers/icp_multi.c b/drivers/staging/comedi/drivers/icp_multi.c
index ee17c6ce838c..b30318172b28 100644
--- a/drivers/staging/comedi/drivers/icp_multi.c
+++ b/drivers/staging/comedi/drivers/icp_multi.c
@@ -173,7 +173,7 @@ static const struct boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(struct boardtype))
-static comedi_driver driver_icp_multi = {
+static struct comedi_driver driver_icp_multi = {
driver_name:"icp_multi",
module : THIS_MODULE,
attach : icp_multi_attach,
diff --git a/drivers/staging/comedi/drivers/ii_pci20kc.c b/drivers/staging/comedi/drivers/ii_pci20kc.c
index df21bf255d02..e1376a173f33 100644
--- a/drivers/staging/comedi/drivers/ii_pci20kc.c
+++ b/drivers/staging/comedi/drivers/ii_pci20kc.c
@@ -159,7 +159,7 @@ typedef struct {
static int pci20xxx_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pci20xxx_detach(struct comedi_device * dev);
-static comedi_driver driver_pci20xxx = {
+static struct comedi_driver driver_pci20xxx = {
driver_name:"ii_pci20kc",
module:THIS_MODULE,
attach:pci20xxx_attach,
diff --git a/drivers/staging/comedi/drivers/jr3_pci.c b/drivers/staging/comedi/drivers/jr3_pci.c
index 44b5c4ff3648..f256b9981c32 100644
--- a/drivers/staging/comedi/drivers/jr3_pci.c
+++ b/drivers/staging/comedi/drivers/jr3_pci.c
@@ -106,7 +106,7 @@ static int comedi_load_firmware(struct comedi_device * dev,
static int jr3_pci_attach(struct comedi_device * dev, comedi_devconfig * it);
static int jr3_pci_detach(struct comedi_device * dev);
-static comedi_driver driver_jr3_pci = {
+static struct comedi_driver driver_jr3_pci = {
driver_name:"jr3_pci",
module:THIS_MODULE,
attach:jr3_pci_attach,
diff --git a/drivers/staging/comedi/drivers/ke_counter.c b/drivers/staging/comedi/drivers/ke_counter.c
index 08f09ac19d70..5ee1cf51aa13 100644
--- a/drivers/staging/comedi/drivers/ke_counter.c
+++ b/drivers/staging/comedi/drivers/ke_counter.c
@@ -86,7 +86,7 @@ typedef struct {
#define devpriv ((cnt_device_private *)dev->private)
-static comedi_driver cnt_driver = {
+static struct comedi_driver cnt_driver = {
driver_name:CNT_DRIVER_NAME,
module:THIS_MODULE,
attach:cnt_attach,
diff --git a/drivers/staging/comedi/drivers/me4000.c b/drivers/staging/comedi/drivers/me4000.c
index 17de86a3988c..095da3f1315d 100644
--- a/drivers/staging/comedi/drivers/me4000.c
+++ b/drivers/staging/comedi/drivers/me4000.c
@@ -120,7 +120,7 @@ static const me4000_board_t me4000_boards[] = {
---------------------------------------------------------------------------*/
static int me4000_attach(struct comedi_device *dev, comedi_devconfig *it);
static int me4000_detach(struct comedi_device *dev);
-static comedi_driver driver_me4000 = {
+static struct comedi_driver driver_me4000 = {
driver_name:"me4000",
module : THIS_MODULE,
attach : me4000_attach,
diff --git a/drivers/staging/comedi/drivers/me_daq.c b/drivers/staging/comedi/drivers/me_daq.c
index 084b903d0cd6..e47a954f189e 100644
--- a/drivers/staging/comedi/drivers/me_daq.c
+++ b/drivers/staging/comedi/drivers/me_daq.c
@@ -246,7 +246,8 @@ static const struct me_board me_boards[] = {
#define me_board_nbr (sizeof(me_boards)/sizeof(struct me_board))
-static comedi_driver me_driver = {
+
+static struct comedi_driver me_driver = {
.driver_name = ME_DRIVER_NAME,
.module = THIS_MODULE,
.attach = me_attach,
diff --git a/drivers/staging/comedi/drivers/mpc624.c b/drivers/staging/comedi/drivers/mpc624.c
index 2a30dda24bc4..9b9c8c038dbd 100644
--- a/drivers/staging/comedi/drivers/mpc624.c
+++ b/drivers/staging/comedi/drivers/mpc624.c
@@ -147,7 +147,7 @@ static const comedi_lrange range_mpc624_bipolar10 = {
static int mpc624_attach(struct comedi_device * dev, comedi_devconfig * it);
static int mpc624_detach(struct comedi_device * dev);
//----------------------------------------------------------------------------
-static comedi_driver driver_mpc624 = {
+static struct comedi_driver driver_mpc624 = {
driver_name:"mpc624",
module:THIS_MODULE,
attach:mpc624_attach,
diff --git a/drivers/staging/comedi/drivers/mpc8260cpm.c b/drivers/staging/comedi/drivers/mpc8260cpm.c
index 40057a0b8f97..9588f2652d22 100644
--- a/drivers/staging/comedi/drivers/mpc8260cpm.c
+++ b/drivers/staging/comedi/drivers/mpc8260cpm.c
@@ -46,7 +46,7 @@ typedef struct {
static int mpc8260cpm_attach(struct comedi_device * dev, comedi_devconfig * it);
static int mpc8260cpm_detach(struct comedi_device * dev);
-static comedi_driver driver_mpc8260cpm = {
+static struct comedi_driver driver_mpc8260cpm = {
driver_name:"mpc8260cpm",
module:THIS_MODULE,
attach:mpc8260cpm_attach,
diff --git a/drivers/staging/comedi/drivers/multiq3.c b/drivers/staging/comedi/drivers/multiq3.c
index 151d6d4bdde4..186676e5f86d 100644
--- a/drivers/staging/comedi/drivers/multiq3.c
+++ b/drivers/staging/comedi/drivers/multiq3.c
@@ -84,7 +84,7 @@ Devices: [Quanser Consulting] MultiQ-3 (multiq3)
static int multiq3_attach(struct comedi_device * dev, comedi_devconfig * it);
static int multiq3_detach(struct comedi_device * dev);
-static comedi_driver driver_multiq3 = {
+static struct comedi_driver driver_multiq3 = {
driver_name:"multiq3",
module:THIS_MODULE,
attach:multiq3_attach,
diff --git a/drivers/staging/comedi/drivers/ni_6527.c b/drivers/staging/comedi/drivers/ni_6527.c
index 453588813293..7879f8675820 100644
--- a/drivers/staging/comedi/drivers/ni_6527.c
+++ b/drivers/staging/comedi/drivers/ni_6527.c
@@ -77,7 +77,7 @@ Updated: Sat, 25 Jan 2003 13:24:40 -0800
static int ni6527_attach(struct comedi_device * dev, comedi_devconfig * it);
static int ni6527_detach(struct comedi_device * dev);
-static comedi_driver driver_ni6527 = {
+static struct comedi_driver driver_ni6527 = {
driver_name:"ni6527",
module:THIS_MODULE,
attach:ni6527_attach,
diff --git a/drivers/staging/comedi/drivers/ni_65xx.c b/drivers/staging/comedi/drivers/ni_65xx.c
index c12dcb6cae60..b89543115c27 100644
--- a/drivers/staging/comedi/drivers/ni_65xx.c
+++ b/drivers/staging/comedi/drivers/ni_65xx.c
@@ -104,7 +104,7 @@ static inline unsigned Filter_Enable(unsigned port)
static int ni_65xx_attach(struct comedi_device * dev, comedi_devconfig * it);
static int ni_65xx_detach(struct comedi_device * dev);
-static comedi_driver driver_ni_65xx = {
+static struct comedi_driver driver_ni_65xx = {
driver_name:"ni_65xx",
module:THIS_MODULE,
attach:ni_65xx_attach,
diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/drivers/staging/comedi/drivers/ni_660x.c
index 3304472d0a76..469f9553f034 100644
--- a/drivers/staging/comedi/drivers/ni_660x.c
+++ b/drivers/staging/comedi/drivers/ni_660x.c
@@ -450,7 +450,7 @@ static void init_tio_chip(struct comedi_device * dev, int chipset);
static void ni_660x_select_pfi_output(struct comedi_device * dev, unsigned pfi_channel,
unsigned output_select);
-static comedi_driver driver_ni_660x = {
+static struct comedi_driver driver_ni_660x = {
driver_name:"ni_660x",
module:THIS_MODULE,
attach:ni_660x_attach,
diff --git a/drivers/staging/comedi/drivers/ni_670x.c b/drivers/staging/comedi/drivers/ni_670x.c
index 0bcbfd1cd5ba..7dbbfdcb1973 100644
--- a/drivers/staging/comedi/drivers/ni_670x.c
+++ b/drivers/staging/comedi/drivers/ni_670x.c
@@ -111,7 +111,7 @@ typedef struct {
static int ni_670x_attach(struct comedi_device * dev, comedi_devconfig * it);
static int ni_670x_detach(struct comedi_device * dev);
-static comedi_driver driver_ni_670x = {
+static struct comedi_driver driver_ni_670x = {
driver_name:"ni_670x",
module:THIS_MODULE,
attach:ni_670x_attach,
diff --git a/drivers/staging/comedi/drivers/ni_at_a2150.c b/drivers/staging/comedi/drivers/ni_at_a2150.c
index c15568d3cd46..87edc61f6a4e 100644
--- a/drivers/staging/comedi/drivers/ni_at_a2150.c
+++ b/drivers/staging/comedi/drivers/ni_at_a2150.c
@@ -171,7 +171,7 @@ static int a2150_attach(struct comedi_device * dev, comedi_devconfig * it);
static int a2150_detach(struct comedi_device * dev);
static int a2150_cancel(struct comedi_device * dev, struct comedi_subdevice * s);
-static comedi_driver driver_a2150 = {
+static struct comedi_driver driver_a2150 = {
driver_name:"ni_at_a2150",
module:THIS_MODULE,
attach:a2150_attach,
diff --git a/drivers/staging/comedi/drivers/ni_at_ao.c b/drivers/staging/comedi/drivers/ni_at_ao.c
index e5083a2111c3..2176bb2d743d 100644
--- a/drivers/staging/comedi/drivers/ni_at_ao.c
+++ b/drivers/staging/comedi/drivers/ni_at_ao.c
@@ -180,7 +180,7 @@ typedef struct {
static int atao_attach(struct comedi_device * dev, comedi_devconfig * it);
static int atao_detach(struct comedi_device * dev);
-static comedi_driver driver_atao = {
+static struct comedi_driver driver_atao = {
driver_name:"ni_at_ao",
module:THIS_MODULE,
attach:atao_attach,
diff --git a/drivers/staging/comedi/drivers/ni_atmio.c b/drivers/staging/comedi/drivers/ni_atmio.c
index 0e30050b91e6..d5baaa1ca3ff 100644
--- a/drivers/staging/comedi/drivers/ni_atmio.c
+++ b/drivers/staging/comedi/drivers/ni_atmio.c
@@ -340,7 +340,7 @@ MODULE_DEVICE_TABLE(pnp, device_ids);
static int ni_atmio_attach(struct comedi_device * dev, comedi_devconfig * it);
static int ni_atmio_detach(struct comedi_device * dev);
-static comedi_driver driver_atmio = {
+static struct comedi_driver driver_atmio = {
driver_name:"ni_atmio",
module:THIS_MODULE,
attach:ni_atmio_attach,
diff --git a/drivers/staging/comedi/drivers/ni_atmio16d.c b/drivers/staging/comedi/drivers/ni_atmio16d.c
index 9c59c51863fe..592922aad85c 100644
--- a/drivers/staging/comedi/drivers/ni_atmio16d.c
+++ b/drivers/staging/comedi/drivers/ni_atmio16d.c
@@ -134,7 +134,7 @@ static void reset_counters(struct comedi_device * dev);
static void reset_atmio16d(struct comedi_device * dev);
/* main driver struct */
-static comedi_driver driver_atmio16d = {
+static struct comedi_driver driver_atmio16d = {
driver_name:"atmio16",
module:THIS_MODULE,
attach:atmio16d_attach,
diff --git a/drivers/staging/comedi/drivers/ni_daq_700.c b/drivers/staging/comedi/drivers/ni_daq_700.c
index 8a0a5fa50eee..ea906a7fef14 100644
--- a/drivers/staging/comedi/drivers/ni_daq_700.c
+++ b/drivers/staging/comedi/drivers/ni_daq_700.c
@@ -97,7 +97,7 @@ typedef struct {
#define devpriv ((dio700_private *)dev->private)
-static comedi_driver driver_dio700 = {
+static struct comedi_driver driver_dio700 = {
driver_name:"ni_daq_700",
module:THIS_MODULE,
attach:dio700_attach,
diff --git a/drivers/staging/comedi/drivers/ni_daq_dio24.c b/drivers/staging/comedi/drivers/ni_daq_dio24.c
index f2c73a4af068..5783a8f57730 100644
--- a/drivers/staging/comedi/drivers/ni_daq_dio24.c
+++ b/drivers/staging/comedi/drivers/ni_daq_dio24.c
@@ -97,7 +97,7 @@ typedef struct {
#define devpriv ((dio24_private *)dev->private)
-static comedi_driver driver_dio24 = {
+static struct comedi_driver driver_dio24 = {
driver_name:"ni_daq_dio24",
module:THIS_MODULE,
attach:dio24_attach,
diff --git a/drivers/staging/comedi/drivers/ni_labpc.c b/drivers/staging/comedi/drivers/ni_labpc.c
index 6ba97da42def..e1326a35e78c 100644
--- a/drivers/staging/comedi/drivers/ni_labpc.c
+++ b/drivers/staging/comedi/drivers/ni_labpc.c
@@ -429,7 +429,7 @@ static const int sample_size = 2; // 2 bytes per sample
#define devpriv ((labpc_private *)dev->private)
-static comedi_driver driver_labpc = {
+static struct comedi_driver driver_labpc = {
.driver_name = DRV_NAME,
.module = THIS_MODULE,
.attach = labpc_attach,
diff --git a/drivers/staging/comedi/drivers/ni_labpc_cs.c b/drivers/staging/comedi/drivers/ni_labpc_cs.c
index f41d39b75df9..f94cde904dd7 100644
--- a/drivers/staging/comedi/drivers/ni_labpc_cs.c
+++ b/drivers/staging/comedi/drivers/ni_labpc_cs.c
@@ -116,7 +116,7 @@ static const labpc_board labpc_cs_boards[] = {
*/
#define thisboard ((const labpc_board *)dev->board_ptr)
-static comedi_driver driver_labpc_cs = {
+static struct comedi_driver driver_labpc_cs = {
.driver_name = "ni_labpc_cs",
.module = THIS_MODULE,
.attach = &labpc_attach,
diff --git a/drivers/staging/comedi/drivers/ni_mio_cs.c b/drivers/staging/comedi/drivers/ni_mio_cs.c
index 4891bc2805f8..c3dad5937e05 100644
--- a/drivers/staging/comedi/drivers/ni_mio_cs.c
+++ b/drivers/staging/comedi/drivers/ni_mio_cs.c
@@ -227,7 +227,7 @@ static uint16_t mio_cs_win_in(struct comedi_device * dev, int addr)
static int mio_cs_attach(struct comedi_device * dev, comedi_devconfig * it);
static int mio_cs_detach(struct comedi_device * dev);
-static comedi_driver driver_ni_mio_cs = {
+static struct comedi_driver driver_ni_mio_cs = {
driver_name:"ni_mio_cs",
module:THIS_MODULE,
attach:mio_cs_attach,
diff --git a/drivers/staging/comedi/drivers/ni_pcidio.c b/drivers/staging/comedi/drivers/ni_pcidio.c
index d75939bcca17..5b0f2b61b1ee 100644
--- a/drivers/staging/comedi/drivers/ni_pcidio.c
+++ b/drivers/staging/comedi/drivers/ni_pcidio.c
@@ -291,7 +291,7 @@ static int nidio_attach(struct comedi_device * dev, comedi_devconfig * it);
static int nidio_detach(struct comedi_device * dev);
static int ni_pcidio_cancel(struct comedi_device * dev, struct comedi_subdevice * s);
-static comedi_driver driver_pcidio = {
+static struct comedi_driver driver_pcidio = {
driver_name:"ni_pcidio",
module:THIS_MODULE,
attach:nidio_attach,
diff --git a/drivers/staging/comedi/drivers/ni_pcimio.c b/drivers/staging/comedi/drivers/ni_pcimio.c
index 105dab0758f1..173d0a57245a 100644
--- a/drivers/staging/comedi/drivers/ni_pcimio.c
+++ b/drivers/staging/comedi/drivers/ni_pcimio.c
@@ -1209,7 +1209,7 @@ static const ni_board ni_boards[] = {
static int pcimio_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcimio_detach(struct comedi_device * dev);
-static comedi_driver driver_pcimio = {
+static struct comedi_driver driver_pcimio = {
driver_name: DRV_NAME,
module:THIS_MODULE,
attach:pcimio_attach,
diff --git a/drivers/staging/comedi/drivers/pcl711.c b/drivers/staging/comedi/drivers/pcl711.c
index 4261fcc85adf..e2f73ca1aa15 100644
--- a/drivers/staging/comedi/drivers/pcl711.c
+++ b/drivers/staging/comedi/drivers/pcl711.c
@@ -156,7 +156,7 @@ static const boardtype boardtypes[] = {
static int pcl711_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcl711_detach(struct comedi_device * dev);
-static comedi_driver driver_pcl711 = {
+static struct comedi_driver driver_pcl711 = {
driver_name:"pcl711",
module:THIS_MODULE,
attach:pcl711_attach,
diff --git a/drivers/staging/comedi/drivers/pcl724.c b/drivers/staging/comedi/drivers/pcl724.c
index a65bcfb1043b..b9af0c045e7c 100644
--- a/drivers/staging/comedi/drivers/pcl724.c
+++ b/drivers/staging/comedi/drivers/pcl724.c
@@ -81,7 +81,7 @@ static const boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
#define this_board ((const boardtype *)dev->board_ptr)
-static comedi_driver driver_pcl724 = {
+static struct comedi_driver driver_pcl724 = {
driver_name:"pcl724",
module:THIS_MODULE,
attach:pcl724_attach,
diff --git a/drivers/staging/comedi/drivers/pcl725.c b/drivers/staging/comedi/drivers/pcl725.c
index a2ea3e154bb2..570193598d98 100644
--- a/drivers/staging/comedi/drivers/pcl725.c
+++ b/drivers/staging/comedi/drivers/pcl725.c
@@ -22,7 +22,7 @@ Devices: [Advantech] PCL-725 (pcl725)
static int pcl725_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcl725_detach(struct comedi_device * dev);
-static comedi_driver driver_pcl725 = {
+static struct comedi_driver driver_pcl725 = {
driver_name:"pcl725",
module:THIS_MODULE,
attach:pcl725_attach,
diff --git a/drivers/staging/comedi/drivers/pcl726.c b/drivers/staging/comedi/drivers/pcl726.c
index 23e98550c58b..f63b60f6f7d4 100644
--- a/drivers/staging/comedi/drivers/pcl726.c
+++ b/drivers/staging/comedi/drivers/pcl726.c
@@ -149,7 +149,7 @@ static const boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
#define this_board ((const boardtype *)dev->board_ptr)
-static comedi_driver driver_pcl726 = {
+static struct comedi_driver driver_pcl726 = {
driver_name:"pcl726",
module:THIS_MODULE,
attach:pcl726_attach,
diff --git a/drivers/staging/comedi/drivers/pcl730.c b/drivers/staging/comedi/drivers/pcl730.c
index 974f96cfcf45..63b4a35159a8 100644
--- a/drivers/staging/comedi/drivers/pcl730.c
+++ b/drivers/staging/comedi/drivers/pcl730.c
@@ -43,7 +43,7 @@ static const boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
#define this_board ((const boardtype *)dev->board_ptr)
-static comedi_driver driver_pcl730 = {
+static struct comedi_driver driver_pcl730 = {
driver_name:"pcl730",
module:THIS_MODULE,
attach:pcl730_attach,
diff --git a/drivers/staging/comedi/drivers/pcl812.c b/drivers/staging/comedi/drivers/pcl812.c
index b678dd6dd73f..a44f1fb3af54 100644
--- a/drivers/staging/comedi/drivers/pcl812.c
+++ b/drivers/staging/comedi/drivers/pcl812.c
@@ -374,7 +374,7 @@ static const boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
#define this_board ((const boardtype *)dev->board_ptr)
-static comedi_driver driver_pcl812 = {
+static struct comedi_driver driver_pcl812 = {
driver_name:"pcl812",
module:THIS_MODULE,
attach:pcl812_attach,
diff --git a/drivers/staging/comedi/drivers/pcl816.c b/drivers/staging/comedi/drivers/pcl816.c
index f1282c68d7ef..c5a969898c12 100644
--- a/drivers/staging/comedi/drivers/pcl816.c
+++ b/drivers/staging/comedi/drivers/pcl816.c
@@ -154,7 +154,7 @@ static int RTC_lock = 0; /* RTC lock */
static int RTC_timer_lock = 0; /* RTC int lock */
#endif
-static comedi_driver driver_pcl816 = {
+static struct comedi_driver driver_pcl816 = {
driver_name:"pcl816",
module:THIS_MODULE,
attach:pcl816_attach,
diff --git a/drivers/staging/comedi/drivers/pcl818.c b/drivers/staging/comedi/drivers/pcl818.c
index d202022c1be6..afe326e7d98c 100644
--- a/drivers/staging/comedi/drivers/pcl818.c
+++ b/drivers/staging/comedi/drivers/pcl818.c
@@ -299,7 +299,7 @@ static const boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
-static comedi_driver driver_pcl818 = {
+static struct comedi_driver driver_pcl818 = {
driver_name:"pcl818",
module:THIS_MODULE,
attach:pcl818_attach,
diff --git a/drivers/staging/comedi/drivers/pcm3724.c b/drivers/staging/comedi/drivers/pcm3724.c
index dedf92c6a149..5d965466f0f2 100644
--- a/drivers/staging/comedi/drivers/pcm3724.c
+++ b/drivers/staging/comedi/drivers/pcm3724.c
@@ -85,7 +85,7 @@ static const boardtype boardtypes[] = {
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
#define this_board ((const boardtype *)dev->board_ptr)
-static comedi_driver driver_pcm3724 = {
+static struct comedi_driver driver_pcm3724 = {
driver_name:"pcm3724",
module:THIS_MODULE,
attach:pcm3724_attach,
diff --git a/drivers/staging/comedi/drivers/pcm3730.c b/drivers/staging/comedi/drivers/pcm3730.c
index e89b3c7ea550..b505a015be06 100644
--- a/drivers/staging/comedi/drivers/pcm3730.c
+++ b/drivers/staging/comedi/drivers/pcm3730.c
@@ -30,7 +30,7 @@ Configuration options:
static int pcm3730_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcm3730_detach(struct comedi_device * dev);
-static comedi_driver driver_pcm3730 = {
+static struct comedi_driver driver_pcm3730 = {
driver_name:"pcm3730",
module:THIS_MODULE,
attach:pcm3730_attach,
diff --git a/drivers/staging/comedi/drivers/pcmad.c b/drivers/staging/comedi/drivers/pcmad.c
index 5cb0e59cb216..b129a473587b 100644
--- a/drivers/staging/comedi/drivers/pcmad.c
+++ b/drivers/staging/comedi/drivers/pcmad.c
@@ -78,7 +78,7 @@ struct pcmad_priv_struct {
static int pcmad_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcmad_detach(struct comedi_device * dev);
-static comedi_driver driver_pcmad = {
+static struct comedi_driver driver_pcmad = {
driver_name:"pcmad",
module:THIS_MODULE,
attach:pcmad_attach,
diff --git a/drivers/staging/comedi/drivers/pcmda12.c b/drivers/staging/comedi/drivers/pcmda12.c
index 32cfc35daee2..a2dfb4bf65f8 100644
--- a/drivers/staging/comedi/drivers/pcmda12.c
+++ b/drivers/staging/comedi/drivers/pcmda12.c
@@ -100,7 +100,7 @@ typedef struct {
#define devpriv ((pcmda12_private *)(dev->private))
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
@@ -110,7 +110,7 @@ static int pcmda12_detach(struct comedi_device * dev);
static void zero_chans(struct comedi_device * dev);
-static comedi_driver driver = {
+static struct comedi_driver driver = {
driver_name:"pcmda12",
module:THIS_MODULE,
attach:pcmda12_attach,
diff --git a/drivers/staging/comedi/drivers/pcmmio.c b/drivers/staging/comedi/drivers/pcmmio.c
index 6af8637880c0..0dcc09982fa6 100644
--- a/drivers/staging/comedi/drivers/pcmmio.c
+++ b/drivers/staging/comedi/drivers/pcmmio.c
@@ -259,7 +259,7 @@ typedef struct {
#define devpriv ((pcmmio_private *)dev->private)
#define subpriv ((pcmmio_subdev_private *)s->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
@@ -267,7 +267,7 @@ typedef struct {
static int pcmmio_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcmmio_detach(struct comedi_device * dev);
-static comedi_driver driver = {
+static struct comedi_driver driver = {
driver_name:"pcmmio",
module:THIS_MODULE,
attach:pcmmio_attach,
diff --git a/drivers/staging/comedi/drivers/pcmuio.c b/drivers/staging/comedi/drivers/pcmuio.c
index 6dc42eb047d3..7204084073f0 100644
--- a/drivers/staging/comedi/drivers/pcmuio.c
+++ b/drivers/staging/comedi/drivers/pcmuio.c
@@ -217,7 +217,7 @@ typedef struct {
#define devpriv ((pcmuio_private *)dev->private)
#define subpriv ((pcmuio_subdev_private *)s->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
@@ -225,7 +225,7 @@ typedef struct {
static int pcmuio_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcmuio_detach(struct comedi_device * dev);
-static comedi_driver driver = {
+static struct comedi_driver driver = {
driver_name:"pcmuio",
module:THIS_MODULE,
attach:pcmuio_attach,
diff --git a/drivers/staging/comedi/drivers/poc.c b/drivers/staging/comedi/drivers/poc.c
index 5fc566f4aaa3..dde46b126312 100644
--- a/drivers/staging/comedi/drivers/poc.c
+++ b/drivers/staging/comedi/drivers/poc.c
@@ -103,7 +103,7 @@ static const struct boarddef_struct boards[] = {
#define n_boards (sizeof(boards)/sizeof(boards[0]))
#define this_board ((const struct boarddef_struct *)dev->board_ptr)
-static comedi_driver driver_poc = {
+static struct comedi_driver driver_poc = {
driver_name:"poc",
module:THIS_MODULE,
attach:poc_attach,
diff --git a/drivers/staging/comedi/drivers/quatech_daqp_cs.c b/drivers/staging/comedi/drivers/quatech_daqp_cs.c
index a3bfa6465b56..c30b1ccb2903 100644
--- a/drivers/staging/comedi/drivers/quatech_daqp_cs.c
+++ b/drivers/staging/comedi/drivers/quatech_daqp_cs.c
@@ -199,7 +199,7 @@ static const comedi_lrange range_daqp_ao = { 1, {BIP_RANGE(5)} };
static int daqp_attach(struct comedi_device * dev, comedi_devconfig * it);
static int daqp_detach(struct comedi_device * dev);
-static comedi_driver driver_daqp = {
+static struct comedi_driver driver_daqp = {
driver_name:"quatech_daqp_cs",
module:THIS_MODULE,
attach:daqp_attach,
diff --git a/drivers/staging/comedi/drivers/rtd520.c b/drivers/staging/comedi/drivers/rtd520.c
index 405c2040a881..c238f5b97d85 100644
--- a/drivers/staging/comedi/drivers/rtd520.c
+++ b/drivers/staging/comedi/drivers/rtd520.c
@@ -675,7 +675,7 @@ struct rtdPrivate {
readb (devpriv->lcfg+LCFG_DMACSR1)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attac/detach)
* the board, and also about the kernel module that contains
* the device code.
@@ -683,7 +683,7 @@ struct rtdPrivate {
static int rtd_attach(struct comedi_device *dev, comedi_devconfig *it);
static int rtd_detach(struct comedi_device *dev);
-static comedi_driver rtd520Driver = {
+static struct comedi_driver rtd520Driver = {
driver_name: DRV_NAME,
module : THIS_MODULE,
attach : rtd_attach,
diff --git a/drivers/staging/comedi/drivers/rti800.c b/drivers/staging/comedi/drivers/rti800.c
index 3525813b9bf3..0d2e9ff4f4f6 100644
--- a/drivers/staging/comedi/drivers/rti800.c
+++ b/drivers/staging/comedi/drivers/rti800.c
@@ -131,7 +131,7 @@ static const boardtype boardtypes[] = {
static int rti800_attach(struct comedi_device * dev, comedi_devconfig * it);
static int rti800_detach(struct comedi_device * dev);
-static comedi_driver driver_rti800 = {
+static struct comedi_driver driver_rti800 = {
driver_name:"rti800",
module:THIS_MODULE,
attach:rti800_attach,
diff --git a/drivers/staging/comedi/drivers/rti802.c b/drivers/staging/comedi/drivers/rti802.c
index 0985c858cb2f..0d2d1c310d03 100644
--- a/drivers/staging/comedi/drivers/rti802.c
+++ b/drivers/staging/comedi/drivers/rti802.c
@@ -49,7 +49,7 @@ Configuration Options:
static int rti802_attach(struct comedi_device * dev, comedi_devconfig * it);
static int rti802_detach(struct comedi_device * dev);
-static comedi_driver driver_rti802 = {
+static struct comedi_driver driver_rti802 = {
driver_name:"rti802",
module:THIS_MODULE,
attach:rti802_attach,
diff --git a/drivers/staging/comedi/drivers/s526.c b/drivers/staging/comedi/drivers/s526.c
index 51ff5a7e5639..d3881498e164 100644
--- a/drivers/staging/comedi/drivers/s526.c
+++ b/drivers/staging/comedi/drivers/s526.c
@@ -210,14 +210,14 @@ typedef struct {
#define devpriv ((s526_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int s526_attach(struct comedi_device * dev, comedi_devconfig * it);
static int s526_detach(struct comedi_device * dev);
-static comedi_driver driver_s526 = {
+static struct comedi_driver driver_s526 = {
driver_name:"s526",
module:THIS_MODULE,
attach:s526_attach,
diff --git a/drivers/staging/comedi/drivers/s626.c b/drivers/staging/comedi/drivers/s626.c
index 4bba963cd537..ac6424ca25da 100644
--- a/drivers/staging/comedi/drivers/s626.c
+++ b/drivers/staging/comedi/drivers/s626.c
@@ -121,7 +121,7 @@ MODULE_DEVICE_TABLE(pci, s626_pci_table);
static int s626_attach(struct comedi_device *dev, comedi_devconfig *it);
static int s626_detach(struct comedi_device *dev);
-static comedi_driver driver_s626 = {
+static struct comedi_driver driver_s626 = {
driver_name:"s626",
module : THIS_MODULE,
attach : s626_attach,
diff --git a/drivers/staging/comedi/drivers/serial2002.c b/drivers/staging/comedi/drivers/serial2002.c
index c23a4322c1a8..7c056a328c0d 100644
--- a/drivers/staging/comedi/drivers/serial2002.c
+++ b/drivers/staging/comedi/drivers/serial2002.c
@@ -87,7 +87,7 @@ typedef struct {
static int serial2002_attach(struct comedi_device * dev, comedi_devconfig * it);
static int serial2002_detach(struct comedi_device * dev);
-comedi_driver driver_serial2002 = {
+struct comedi_driver driver_serial2002 = {
driver_name:"serial2002",
module:THIS_MODULE,
attach:serial2002_attach,
diff --git a/drivers/staging/comedi/drivers/skel.c b/drivers/staging/comedi/drivers/skel.c
index 13b14454f59a..5dda0cd6c990 100644
--- a/drivers/staging/comedi/drivers/skel.c
+++ b/drivers/staging/comedi/drivers/skel.c
@@ -44,7 +44,7 @@ Configuration Options:
* Devices: a full list of the boards that attempt to be supported by
* the driver. Format is "(manufacturer) board name [comedi name]",
* where comedi_name is the name that is used to configure the board.
- * See the comment near board_name: in the comedi_driver structure
+ * See the comment near board_name: in the struct comedi_driver structure
* below. If (manufacturer) or [comedi name] is missing, the previous
* value is used.
* Author: you
@@ -146,14 +146,14 @@ typedef struct {
#define devpriv ((skel_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int skel_attach(struct comedi_device * dev, comedi_devconfig * it);
static int skel_detach(struct comedi_device * dev);
-static comedi_driver driver_skel = {
+static struct comedi_driver driver_skel = {
driver_name:"dummy",
module:THIS_MODULE,
attach:skel_attach,
diff --git a/drivers/staging/comedi/drivers/ssv_dnp.c b/drivers/staging/comedi/drivers/ssv_dnp.c
index db31c2066aec..a5fda67f4a6a 100644
--- a/drivers/staging/comedi/drivers/ssv_dnp.c
+++ b/drivers/staging/comedi/drivers/ssv_dnp.c
@@ -80,7 +80,7 @@ typedef struct {
#define devpriv ((dnp_private *)dev->private)
/* ------------------------------------------------------------------------- */
-/* The comedi_driver structure tells the Comedi core module which functions */
+/* The struct comedi_driver structure tells the Comedi core module which functions */
/* to call to configure/deconfigure (attach/detach) the board, and also */
/* about the kernel module that contains the device code. */
/* */
@@ -90,7 +90,7 @@ typedef struct {
static int dnp_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dnp_detach(struct comedi_device * dev);
-static comedi_driver driver_dnp = {
+static struct comedi_driver driver_dnp = {
driver_name:"ssv_dnp",
module:THIS_MODULE,
attach:dnp_attach,
diff --git a/drivers/staging/comedi/drivers/unioxx5.c b/drivers/staging/comedi/drivers/unioxx5.c
index 34c44718b522..bc5511d03ced 100644
--- a/drivers/staging/comedi/drivers/unioxx5.c
+++ b/drivers/staging/comedi/drivers/unioxx5.c
@@ -102,7 +102,7 @@ static int __unioxx5_analog_read(unioxx5_subd_priv * usp, unsigned int * data,
static int __unioxx5_define_chan_offset(int chan_num);
static void __unioxx5_analog_config(unioxx5_subd_priv * usp, int channel);
-static comedi_driver unioxx5_driver = {
+static struct comedi_driver unioxx5_driver = {
driver_name:DRIVER_NAME,
module:THIS_MODULE,
attach:unioxx5_attach,
diff --git a/drivers/staging/comedi/drivers/usbdux.c b/drivers/staging/comedi/drivers/usbdux.c
index 41872a3a68b2..e3462c4a5a65 100644
--- a/drivers/staging/comedi/drivers/usbdux.c
+++ b/drivers/staging/comedi/drivers/usbdux.c
@@ -2903,7 +2903,7 @@ static int usbdux_detach(struct comedi_device *dev)
}
/* main driver struct */
-static comedi_driver driver_usbdux = {
+static struct comedi_driver driver_usbdux = {
.driver_name = "usbdux",
.module = THIS_MODULE,
.attach = usbdux_attach,
diff --git a/drivers/staging/comedi/drivers/usbduxfast.c b/drivers/staging/comedi/drivers/usbduxfast.c
index e141484f11ae..54b49580505a 100644
--- a/drivers/staging/comedi/drivers/usbduxfast.c
+++ b/drivers/staging/comedi/drivers/usbduxfast.c
@@ -1856,7 +1856,7 @@ static int usbduxfast_detach(struct comedi_device *dev)
/*
* main driver struct
*/
-static comedi_driver driver_usbduxfast = {
+static struct comedi_driver driver_usbduxfast = {
.driver_name = "usbduxfast",
.module = THIS_MODULE,
.attach = usbduxfast_attach,
diff --git a/drivers/staging/comedi/proc.c b/drivers/staging/comedi/proc.c
index bb208f852a00..36ae2cd92ad9 100644
--- a/drivers/staging/comedi/proc.c
+++ b/drivers/staging/comedi/proc.c
@@ -36,7 +36,7 @@
int comedi_read_procmem(char *buf, char **start, off_t offset, int len,
int *eof, void *data);
-extern comedi_driver *comedi_drivers;
+extern struct comedi_driver *comedi_drivers;
int comedi_read_procmem(char *buf, char **start, off_t offset, int len,
int *eof, void *data)
@@ -44,7 +44,7 @@ int comedi_read_procmem(char *buf, char **start, off_t offset, int len,
int i;
int devices_q = 0;
int l = 0;
- comedi_driver *driv;
+ struct comedi_driver *driv;
l += sprintf(buf + l,
"comedi version " COMEDI_RELEASE "\n"