summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRussell Robinson Jr <rrobinson@phytec.com>2013-09-11 14:45:57 -0700
committerAnthony Felice <tony.felice@timesys.com>2013-09-17 14:22:18 -0400
commit2c073ea51c603a56a6bc26114a8c24af7a4ac04b (patch)
tree4a4cd803e7bda93ecdb140609a8529fb197949f2 /include
parent0bbe7196d7e00997dc38d99e665998849b790ecc (diff)
leds-gpio: ledtrig-gpio: allow static gpio val
Modified leds-gpio and ledtrig-gpio driver to allow gpios to be designated in kernel space instead of being limited to user space assignment. Signed-off-by: Johnathan Feuerstein <jfeuerstein@phytec.com> Signed-off-by: Russell Robinson Jr <rrobinson@phytec.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/leds.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h
index 5884def15a24..f68d26f326ad 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -61,6 +61,7 @@ struct led_classdev {
struct device *dev;
struct list_head node; /* LED Device list */
const char *default_trigger; /* Trigger to use */
+ unsigned trigger_gpio;
unsigned long blink_delay_on, blink_delay_off;
struct timer_list blink_timer;
@@ -173,6 +174,7 @@ extern void ledtrig_ide_activity(void);
struct led_info {
const char *name;
const char *default_trigger;
+ unsigned trigger_gpio;
int flags;
};
@@ -185,6 +187,7 @@ struct led_platform_data {
struct gpio_led {
const char *name;
const char *default_trigger;
+ unsigned trigger_gpio;
unsigned gpio;
unsigned active_low : 1;
unsigned retain_state_suspended : 1;