]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: cb_pcidas64: Fix checkpath warning
authorAnson Jacob <ansonjacob.aj@gmail.com>
Fri, 26 Aug 2016 23:14:35 +0000 (19:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Sep 2016 12:40:52 +0000 (14:40 +0200)
Fix checkpatch.pl warning:
Please use a blank line after function/struct/union/enum declarations

Move macro definition to the top of the file
Aligne macro definitions

Signed-off-by: Anson Jacob <ansonjacob.aj@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidas64.c

index ac24c10320a6a7a844a9aec0a13823343812bb96..cb9c2699277e64d254e540eaa0527a798768ca99 100644 (file)
@@ -94,7 +94,8 @@
  * maybe I'll support this someday
  */
 #define PRESCALED_TIMER_BASE   10000
-#define DMA_BUFFER_SIZE 0x1000
+#define DMA_BUFFER_SIZE                0x1000
+#define DAC_FIFO_SIZE          0x2000
 
 /* maximum value that can be loaded into board's 24-bit counters */
 static const int max_counter_value = 0xffffff;
@@ -227,7 +228,6 @@ enum hw_config_contents {
        DAC_FIFO_SIZE_MASK = 0xff00,    /* bits that set dac fifo size */
        DAC_FIFO_BITS = 0xf800,         /* 8k sample ao fifo */
 };
-#define DAC_FIFO_SIZE 0x2000
 
 enum daq_atrig_low_4020_contents {
        /* use trig/ext clk bnc input for analog gate signal */