History

soundwire: stream: make stream name a const pointer

Make stream name const pointer

Srinivas Kandagatla committed 7 years ago

Commit dfcff3f1 parent c7578c12 files · +3 −3Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/soundwire/sdw.h+2−2
@@ -844,7 +844,7 @@ struct sdw_stream_params { · 843 unmodified lines
844 * @m_rt_count: Count of Master runtime(s) in this stream844 * @m_rt_count: Count of Master runtime(s) in this stream
845 */845 */
846struct sdw_stream_runtime {846struct sdw_stream_runtime {
847 char *name;847 const char *name;
848 struct sdw_stream_params params;848 struct sdw_stream_params params;
849 enum sdw_stream_state state;849 enum sdw_stream_state state;
850 enum sdw_stream_type type;850 enum sdw_stream_type type;
@@ -852,7 +852,7 @@ struct sdw_stream_runtime { · 1 unmodified line
852 int m_rt_count;852 int m_rt_count;
853};853};
854 854
855struct sdw_stream_runtime *sdw_alloc_stream(char *stream_name);855struct sdw_stream_runtime *sdw_alloc_stream(const char *stream_name);
856void sdw_release_stream(struct sdw_stream_runtime *stream);856void sdw_release_stream(struct sdw_stream_runtime *stream);
857int sdw_stream_add_master(struct sdw_bus *bus,857int sdw_stream_add_master(struct sdw_bus *bus,
858 struct sdw_stream_config *stream_config,858 struct sdw_stream_config *stream_config,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t