+ leds-make-struct-gpio_led_platform_dataleds-const.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     leds: make *struct gpio_led_platform_data.leds const
has been added to the -mm tree.  Its filename is
     leds-make-struct-gpio_led_platform_dataleds-const.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: leds: make *struct gpio_led_platform_data.leds const
From: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>

And fix a typo.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
Cc: Lars-Peter Clausen <lars@xxxxxxxxxx>
Cc: Richard Purdie <rpurdie@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/leds/leds-net5501.c |    2 +-
 include/linux/leds.h        |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff -puN drivers/leds/leds-net5501.c~leds-make-struct-gpio_led_platform_dataleds-const drivers/leds/leds-net5501.c
--- a/drivers/leds/leds-net5501.c~leds-make-struct-gpio_led_platform_dataleds-const
+++ a/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 -puN include/linux/leds.h~leds-make-struct-gpio_led_platform_dataleds-const include/linux/leds.h
--- a/include/linux/leds.h~leds-make-struct-gpio_led_platform_dataleds-const
+++ a/include/linux/leds.h
@@ -197,11 +197,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);
_

Patches currently in -mm which might be from u.kleine-koenig@xxxxxxxxxxxxxx are

linux-next.patch
leds-make-struct-gpio_led_platform_dataleds-const.patch
include-linux-errh-add-a-function-to-cast-error-pointers-to-a-return-value.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux