[PATCH] leds: re-layout include/linux/leds.h
Lay out the structure definitions in include/linux/leds.h to be aligned as much as possible. Also minor updates to the comments to make them more concise. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Acked-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
24f51e8174
commit
fb5035dbbe
@@ -28,21 +28,20 @@ struct led_classdev {
|
|||||||
const char *name;
|
const char *name;
|
||||||
int brightness;
|
int brightness;
|
||||||
int flags;
|
int flags;
|
||||||
|
|
||||||
#define LED_SUSPENDED (1 << 0)
|
#define LED_SUSPENDED (1 << 0)
|
||||||
|
|
||||||
/* A function to set the brightness of the led */
|
/* Set LED brightness level */
|
||||||
void (*brightness_set)(struct led_classdev *led_cdev,
|
void (*brightness_set)(struct led_classdev *led_cdev,
|
||||||
enum led_brightness brightness);
|
enum led_brightness brightness);
|
||||||
|
|
||||||
struct class_device *class_dev;
|
struct class_device *class_dev;
|
||||||
/* LED Device linked list */
|
struct list_head node; /* LED Device list */
|
||||||
struct list_head node;
|
char *default_trigger; /* Trigger to use */
|
||||||
|
|
||||||
/* Trigger data */
|
|
||||||
char *default_trigger;
|
|
||||||
#ifdef CONFIG_LEDS_TRIGGERS
|
#ifdef CONFIG_LEDS_TRIGGERS
|
||||||
rwlock_t trigger_lock;
|
|
||||||
/* Protects the trigger data below */
|
/* Protects the trigger data below */
|
||||||
|
rwlock_t trigger_lock;
|
||||||
|
|
||||||
struct led_trigger *trigger;
|
struct led_trigger *trigger;
|
||||||
struct list_head trig_list;
|
struct list_head trig_list;
|
||||||
|
Reference in New Issue
Block a user