瀏覽代碼

staging: most: core: constify structure member

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>
Andrey Shvetsov 9 年之前
父節點
當前提交
602facfd96
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/most/mostcore/mostcore.h

+ 1 - 1
drivers/staging/most/mostcore/mostcore.h

@@ -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;
 };
 
 /**