X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=include%2Flinux%2Fleds.h;h=dc1178f6184b1480da56a11eeba46bc0f2cc2b14;hb=bea3348eef27e6044b6161fd04c3152215f96411;hp=dc23c7c639f321f9bbb857d2176130c3316c4489;hpb=55308c3712f56279d5547ef6e97d365ac3ab9e6d;p=mirror_ubuntu-artful-kernel.git diff --git a/include/linux/leds.h b/include/linux/leds.h index dc23c7c639f3..dc1178f6184b 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -12,8 +12,10 @@ #ifndef __LINUX_LEDS_H_INCLUDED #define __LINUX_LEDS_H_INCLUDED +#include +#include + struct device; -struct class_device; /* * LED Core */ @@ -35,7 +37,7 @@ 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 */ @@ -107,4 +109,18 @@ extern void ledtrig_ide_activity(void); #define ledtrig_ide_activity() do {} while(0) #endif +/* For the leds-gpio driver */ +struct gpio_led { + const char *name; + char *default_trigger; + unsigned gpio; + u8 active_low; +}; + +struct gpio_led_platform_data { + int num_leds; + struct gpio_led *leds; +}; + + #endif /* __LINUX_LEDS_H_INCLUDED */