]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: iio: trigger: fix up some global variables
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 5 May 2010 05:31:22 +0000 (22:31 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:36:10 +0000 (11:36 -0700)
These should be static.

Cc: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/trigger/iio-trig-gpio.c
drivers/staging/iio/trigger/iio-trig-periodic-rtc.c

index e40099ff6230912f8c19482e8e44cec4fe69b1ee..1da285d28632a611eb0a930f71c7aeeffae445f8 100644 (file)
@@ -25,8 +25,8 @@
 #include "../iio.h"
 #include "../trigger.h"
 
-LIST_HEAD(iio_gpio_trigger_list);
-DEFINE_MUTEX(iio_gpio_trigger_list_lock);
+static LIST_HEAD(iio_gpio_trigger_list);
+static DEFINE_MUTEX(iio_gpio_trigger_list_lock);
 
 struct iio_gpio_trigger_info {
        struct mutex in_use;
index 4295bbc7b50d0f55646eea055974aa555c79c150..4ee3ae1ef8923a1ad1cbddc70e2693aa42870798 100644 (file)
@@ -19,8 +19,8 @@
 #include "../iio.h"
 #include "../trigger.h"
 
-LIST_HEAD(iio_prtc_trigger_list);
-DEFINE_MUTEX(iio_prtc_trigger_list_lock);
+static LIST_HEAD(iio_prtc_trigger_list);
+static DEFINE_MUTEX(iio_prtc_trigger_list_lock);
 
 struct iio_prtc_trigger_info {
        struct rtc_device *rtc;