summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/drivers/pcl724.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-06-10 10:14:50 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-11 17:16:44 -0700
commit0b69b44901bf8c730c3c09eba25377d1f45d8c49 (patch)
tree1d7b4cc2baf8b2dde65e46bf0a56f68832271b57 /drivers/staging/comedi/drivers/pcl724.c
parent313b83d390e1a904373039c28f40273919529e26 (diff)
staging: comedi: pcl724: tidy up the boardinfo
Convert the boardinfo declaration to C99 format and move it near the struct definition. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers/pcl724.c')
-rw-r--r--drivers/staging/comedi/drivers/pcl724.c55
1 files changed, 46 insertions, 9 deletions
diff --git a/drivers/staging/comedi/drivers/pcl724.c b/drivers/staging/comedi/drivers/pcl724.c
index 5d192bbc502f..3a3b16b7e508 100644
--- a/drivers/staging/comedi/drivers/pcl724.c
+++ b/drivers/staging/comedi/drivers/pcl724.c
@@ -64,6 +64,52 @@ struct pcl724_board {
char is_pet48;
};
+static const struct pcl724_board boardtypes[] = {
+ {
+ .name = "pcl724",
+ .dio = 24,
+ .numofports = 1,
+ .io_range = PCL724_SIZE,
+ .can_have96 = 0,
+ .is_pet48 = 0,
+ }, {
+ .name = "pcl722",
+ .dio = 144,
+ .numofports = 6,
+ .io_range = PCL722_SIZE,
+ .can_have96 = 1,
+ .is_pet48 = 0,
+ }, {
+ .name = "pcl731",
+ .dio = 48,
+ .numofports = 2,
+ .io_range = PCL731_SIZE,
+ .can_have96 = 0,
+ .is_pet48 = 0,
+ }, {
+ .name = "acl7122",
+ .dio = 144,
+ .numofports = 6,
+ .io_range = PCL722_SIZE,
+ .can_have96 = 1,
+ .is_pet48 = 0,
+ }, {
+ .name = "acl7124",
+ .dio = 24,
+ .numofports = 1,
+ .io_range = PCL724_SIZE,
+ .can_have96 = 0,
+ .is_pet48 = 0,
+ }, {
+ .name = "pet48dio",
+ .dio = 48,
+ .numofports = 2,
+ .io_range = PET48_SIZE,
+ .can_have96 = 0,
+ .is_pet48 = 1,
+ },
+};
+
static int subdev_8255_cb(int dir, int port, int data, unsigned long arg)
{
unsigned long iobase = arg;
@@ -141,15 +187,6 @@ static void pcl724_detach(struct comedi_device *dev)
comedi_legacy_detach(dev);
}
-static const struct pcl724_board boardtypes[] = {
- { "pcl724", 24, 1, PCL724_SIZE, 0, 0, },
- { "pcl722", 144, 6, PCL722_SIZE, 1, 0, },
- { "pcl731", 48, 2, PCL731_SIZE, 0, 0, },
- { "acl7122", 144, 6, PCL722_SIZE, 1, 0, },
- { "acl7124", 24, 1, PCL724_SIZE, 0, 0, },
- { "pet48dio", 48, 2, PET48_SIZE, 0, 1, },
-};
-
static struct comedi_driver pcl724_driver = {
.driver_name = "pcl724",
.module = THIS_MODULE,