The patch titled
     Documentation/spi/spidev_test.c: constify some variables
has been added to the -mm tree.  Its filename is
     documentation-spi-spidev_testc-constify-some-variables.patch

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

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Documentation/spi/spidev_test.c: constify some variables
From: WANG Cong <[EMAIL PROTECTED]>

Constify two char pointers and a struct in Documentation/spi/spidev_test.c.

Acked-by: David Brownell <[EMAIL PROTECTED]>
Cc: Anton Vorontsov <[EMAIL PROTECTED]>
Signed-off-by: WANG Cong <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 Documentation/spi/spidev_test.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff -puN 
Documentation/spi/spidev_test.c~documentation-spi-spidev_testc-constify-some-variables
 Documentation/spi/spidev_test.c
--- 
a/Documentation/spi/spidev_test.c~documentation-spi-spidev_testc-constify-some-variables
+++ a/Documentation/spi/spidev_test.c
@@ -29,7 +29,7 @@ static void pabort(const char *s)
        abort();
 }
 
-static char *device = "/dev/spidev1.1";
+static const char *device = "/dev/spidev1.1";
 static uint8_t mode;
 static uint8_t bits = 8;
 static uint32_t speed = 500000;
@@ -69,7 +69,7 @@ static void transfer(int fd)
        puts("");
 }
 
-void print_usage(char *prog)
+void print_usage(const char *prog)
 {
        printf("Usage: %s [-DsbdlHOLC3]\n", prog);
        puts("  -D --device   device to use (default /dev/spidev1.1)\n"
@@ -88,7 +88,7 @@ void print_usage(char *prog)
 void parse_opts(int argc, char *argv[])
 {
        while (1) {
-               static struct option lopts[] = {
+               static const struct option lopts[] = {
                        { "device",  1, 0, 'D' },
                        { "speed",   1, 0, 's' },
                        { "delay",   1, 0, 'd' },
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

git-net.patch
fs-romfs-inodec-trivial-improvements.patch
fs-udf-ballocc-mark-a-variable-as-uninitialized_var.patch
documentation-spi-spidev_testc-constify-some-variables.patch
documentation-vm-slabinfoc-clean-up-this-code.patch

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

Reply via email to