All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] leds: make *struct gpio_led_platform_data.leds const
@ 2011-01-19  9:47 Uwe Kleine-König
  2011-02-14 19:58 ` Uwe Kleine-König
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Kleine-König @ 2011-01-19  9:47 UTC (permalink / raw)
  To: Richard Purdie; +Cc: linux-kernel

... and fix a typo.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/leds/leds-net5501.c |    2 +-
 include/linux/leds.h        |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/leds/leds-net5501.c b/drivers/leds/leds-net5501.c
index 1739557..7e764b8 100644
--- a/drivers/leds/leds-net5501.c
+++ b/drivers/leds/leds-net5501.c
@@ -19,7 +19,7 @@
 
 #include <asm/geode.h>
 
-static struct gpio_led net5501_leds[] = {
+static const struct gpio_led net5501_leds[] = {
 	{
 		.name = "error",
 		.gpio = 6,
diff --git a/include/linux/leds.h b/include/linux/leds.h
index 0f19df9..383811d 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -194,11 +194,11 @@ struct gpio_led {
 
 struct gpio_led_platform_data {
 	int 		num_leds;
-	struct gpio_led *leds;
+	const struct gpio_led *leds;
 
 #define GPIO_LED_NO_BLINK_LOW	0	/* No blink GPIO state low */
 #define GPIO_LED_NO_BLINK_HIGH	1	/* No blink GPIO state high */
-#define GPIO_LED_BLINK		2	/* Plase, blink */
+#define GPIO_LED_BLINK		2	/* Please, blink */
 	int		(*gpio_blink_set)(unsigned gpio, int state,
 					unsigned long *delay_on,
 					unsigned long *delay_off);
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] leds: make *struct gpio_led_platform_data.leds const
  2011-01-19  9:47 [PATCH] leds: make *struct gpio_led_platform_data.leds const Uwe Kleine-König
@ 2011-02-14 19:58 ` Uwe Kleine-König
  2011-02-15  0:21   ` Lars-Peter Clausen
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Kleine-König @ 2011-02-14 19:58 UTC (permalink / raw)
  To: Richard Purdie; +Cc: linux-kernel

Hello Richard,

On Wed, Jan 19, 2011 at 10:47:46AM +0100, Uwe Kleine-König wrote:
> ... and fix a typo.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
ping

> ---
>  drivers/leds/leds-net5501.c |    2 +-
>  include/linux/leds.h        |    4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/leds/leds-net5501.c b/drivers/leds/leds-net5501.c
> index 1739557..7e764b8 100644
> --- a/drivers/leds/leds-net5501.c
> +++ b/drivers/leds/leds-net5501.c
> @@ -19,7 +19,7 @@
>  
>  #include <asm/geode.h>
>  
> -static struct gpio_led net5501_leds[] = {
> +static const struct gpio_led net5501_leds[] = {
>  	{
>  		.name = "error",
>  		.gpio = 6,
> diff --git a/include/linux/leds.h b/include/linux/leds.h
> index 0f19df9..383811d 100644
> --- a/include/linux/leds.h
> +++ b/include/linux/leds.h
> @@ -194,11 +194,11 @@ struct gpio_led {
>  
>  struct gpio_led_platform_data {
>  	int 		num_leds;
> -	struct gpio_led *leds;
> +	const struct gpio_led *leds;
>  
>  #define GPIO_LED_NO_BLINK_LOW	0	/* No blink GPIO state low */
>  #define GPIO_LED_NO_BLINK_HIGH	1	/* No blink GPIO state high */
> -#define GPIO_LED_BLINK		2	/* Plase, blink */
> +#define GPIO_LED_BLINK		2	/* Please, blink */
>  	int		(*gpio_blink_set)(unsigned gpio, int state,
>  					unsigned long *delay_on,
>  					unsigned long *delay_off);
> -- 
> 1.7.2.3
> 
> 

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] leds: make *struct gpio_led_platform_data.leds const
  2011-02-14 19:58 ` Uwe Kleine-König
@ 2011-02-15  0:21   ` Lars-Peter Clausen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars-Peter Clausen @ 2011-02-15  0:21 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: Richard Purdie, linux-kernel, Andrew Morton

On 02/14/2011 08:58 PM, Uwe Kleine-König wrote:
> Hello Richard,
> 
> On Wed, Jan 19, 2011 at 10:47:46AM +0100, Uwe Kleine-König wrote:
>> ... and fix a typo.
>>
>> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ping
> 

Andrew Morton merges patches for the LED subsystem these days, so adding him to Cc.


>> ---
>>  drivers/leds/leds-net5501.c |    2 +-
>>  include/linux/leds.h        |    4 ++--
>>  2 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/leds/leds-net5501.c b/drivers/leds/leds-net5501.c
>> index 1739557..7e764b8 100644
>> --- a/drivers/leds/leds-net5501.c
>> +++ b/drivers/leds/leds-net5501.c
>> @@ -19,7 +19,7 @@
>>  
>>  #include <asm/geode.h>
>>  
>> -static struct gpio_led net5501_leds[] = {
>> +static const struct gpio_led net5501_leds[] = {
>>  	{
>>  		.name = "error",
>>  		.gpio = 6,
>> diff --git a/include/linux/leds.h b/include/linux/leds.h
>> index 0f19df9..383811d 100644
>> --- a/include/linux/leds.h
>> +++ b/include/linux/leds.h
>> @@ -194,11 +194,11 @@ struct gpio_led {
>>  
>>  struct gpio_led_platform_data {
>>  	int 		num_leds;
>> -	struct gpio_led *leds;
>> +	const struct gpio_led *leds;
>>  
>>  #define GPIO_LED_NO_BLINK_LOW	0	/* No blink GPIO state low */
>>  #define GPIO_LED_NO_BLINK_HIGH	1	/* No blink GPIO state high */
>> -#define GPIO_LED_BLINK		2	/* Plase, blink */
>> +#define GPIO_LED_BLINK		2	/* Please, blink */
>>  	int		(*gpio_blink_set)(unsigned gpio, int state,
>>  					unsigned long *delay_on,
>>  					unsigned long *delay_off);
>> -- 
>> 1.7.2.3
>>
>>
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-15  0:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-19  9:47 [PATCH] leds: make *struct gpio_led_platform_data.leds const Uwe Kleine-König
2011-02-14 19:58 ` Uwe Kleine-König
2011-02-15  0:21   ` Lars-Peter Clausen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.