From: H Hartley Sweeten Date: Wed, 5 Jun 2013 22:36:00 +0000 (-0700) Subject: staging: comedi: pcmad: move the boardinfo X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2a09cba62e82eb8b6202d4ff6dd37ac64a8d624c;p=linux-beck.git staging: comedi: pcmad: move the boardinfo For aesthetic reasons, move the boardinfo declaration so it follows the definition. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/pcmad.c b/drivers/staging/comedi/drivers/pcmad.c index 6c525ff7ed14..79cc2e630464 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,