staging: most: core: constify structure member
authorAndrey Shvetsov <andrey.shvetsov@k2l.de>
Mon, 12 Sep 2016 14:26:14 +0000 (16:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Sep 2016 13:01:29 +0000 (15:01 +0200)
This patch adds the const qualifier to the declaration of the member
name_suffix of structure most_channel_capability. It is needed since it
points to string literals.

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/mostcore/mostcore.h

index 60e018e..e768cb8 100644 (file)
@@ -112,7 +112,7 @@ struct most_channel_capability {
        u16 buffer_size_packet;
        u16 num_buffers_streaming;
        u16 buffer_size_streaming;
-       char *name_suffix;
+       const char *name_suffix;
 };
 
 /**