summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-06-05 22:36:00 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-06 19:01:34 (GMT)
commit2a09cba62e82eb8b6202d4ff6dd37ac64a8d624c (patch)
tree1b66d2660f5c7a93a6a26b79660d7de077e6005b /drivers/staging
parent06d4bd5153c2ed4e04672f19a1f172be0d793ed3 (diff)
downloadlinux-fsl-qoriq-2a09cba62e82eb8b6202d4ff6dd37ac64a8d624c.tar.xz
staging: comedi: pcmad: move the boardinfo
For aesthetic reasons, move the boardinfo declaration so it follows the definition. 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')
-rw-r--r--drivers/staging/comedi/drivers/pcmad.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/staging/comedi/drivers/pcmad.c b/drivers/staging/comedi/drivers/pcmad.c
index 6c525ff..79cc2e6 100644
--- a/drivers/staging/comedi/drivers/pcmad.c
+++ b/drivers/staging/comedi/drivers/pcmad.c
@@ -55,6 +55,16 @@ struct pcmad_board_struct {
int n_ai_bits;
};
+static const struct pcmad_board_struct pcmad_boards[] = {
+ {
+ .name = "pcmad12",
+ .n_ai_bits = 12,
+ }, {
+ .name = "pcmad16",
+ .n_ai_bits = 16,
+ },
+};
+
struct pcmad_priv_struct {
int differential;
int twos_comp;
@@ -130,15 +140,6 @@ static int pcmad_attach(struct comedi_device *dev, struct comedi_devconfig *it)
return 0;
}
-static const struct pcmad_board_struct pcmad_boards[] = {
- {
- .name = "pcmad12",
- .n_ai_bits = 12,
- }, {
- .name = "pcmad16",
- .n_ai_bits = 16,
- },
-};
static struct comedi_driver pcmad_driver = {
.driver_name = "pcmad",
.module = THIS_MODULE,