Re: [PATCH] leds: Add options to have GPIO LEDs start on or keep their state

2009-05-13 Thread Trent Piepho
On Wed, 13 May 2009, Wolfram Sang wrote: > > diff --git a/include/linux/leds.h b/include/linux/leds.h > > index 376fe07..66e7d75 100644 > > --- a/include/linux/leds.h > > +++ b/include/linux/leds.h > > @@ -141,9 +141,14 @@ struct gpio_led { > > const char *name; > > const char *default_trig

Re: [PATCH] leds: Add options to have GPIO LEDs start on or keep their state

2009-05-13 Thread Wolfram Sang
Hello Trent, > diff --git a/include/linux/leds.h b/include/linux/leds.h > index 376fe07..66e7d75 100644 > --- a/include/linux/leds.h > +++ b/include/linux/leds.h > @@ -141,9 +141,14 @@ struct gpio_led { > const char *name; > const char *default_trigger; > unsignedgpio; >

Re: [PATCH] leds: Add options to have GPIO LEDs start on or keep their state

2009-05-12 Thread Sean MacLennan
On Tue, 12 May 2009 15:33:12 -0700 Trent Piepho wrote: > + if (!strcmp(state, "keep")) { > + led.default_state = > LEDS_GPIO_DEFSTATE_KEEP; > + } else if(!strcmp(state, "on")) { > + led.default_state =