]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/leds.h
[NETFILTER]: xt_conntrack match, revision 1
[linux-2.6-omap-h63xx.git] / include / linux / leds.h
index 059abfe219dc1dacbb40e463a022e75045531507..b4130ff58d0c1be1543c21281e7189a7383834a5 100644 (file)
@@ -14,9 +14,9 @@
 
 #include <linux/list.h>
 #include <linux/spinlock.h>
+#include <linux/rwsem.h>
 
 struct device;
-struct class_device;
 /*
  * LED Core
  */
@@ -38,13 +38,13 @@ struct led_classdev {
        void            (*brightness_set)(struct led_classdev *led_cdev,
                                          enum led_brightness brightness);
 
-       struct class_device     *class_dev;
+       struct device           *dev;
        struct list_head         node;                  /* LED Device list */
        char                    *default_trigger;       /* Trigger to use */
 
 #ifdef CONFIG_LEDS_TRIGGERS
        /* Protects the trigger data below */
-       rwlock_t                 trigger_lock;
+       struct rw_semaphore      trigger_lock;
 
        struct led_trigger      *trigger;
        struct list_head         trig_list;