staging: comedi/drivers: Fixed sparse warnings
authorNayeemahmed Badebade <itachi.opsrc@gmail.com>
Sat, 30 Jul 2016 16:38:15 +0000 (22:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 15:02:42 +0000 (17:02 +0200)
Fixed below sparse warnings in dt2811.c
 warning: symbol 'dt2811_clk_dividers' was not declared. Should it be static?
 warning: symbol 'dt2811_clk_multipliers' was not declared. Should it be static?

Signed-off-by: Nayeemahmed Badebade <itachi.opsrc@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt2811.c

index 904f637797b6300de12acc98404d9b9d18ca3a43..07f99c02c8678ba52e4975f700433f58f1084468 100644 (file)
  *    6      6      100 kHz     6   1000000
  *    7     12       50 kHz     7   10000000
  */
-const unsigned int dt2811_clk_dividers[] = {
+static const unsigned int dt2811_clk_dividers[] = {
        1, 10, 2, 3, 4, 5, 6, 12
 };
 
-const unsigned int dt2811_clk_multipliers[] = {
+static const unsigned int dt2811_clk_multipliers[] = {
        1, 10, 100, 1000, 10000, 100000, 1000000, 10000000
 };