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
844844 * @m_rt_count: Count of Master runtime(s) in this stream
845845 */
846846 struct sdw_stream_runtime {
847− char *name;
847+ const char *name;
848848 struct sdw_stream_params params;
849849 enum sdw_stream_state state;
850850 enum sdw_stream_type type;
@@ -852,7 +852,7 @@ struct sdw_stream_runtime { · 1 unmodified line
852852 int m_rt_count;
853853 };
854854
855−struct sdw_stream_runtime *sdw_alloc_stream(char *stream_name);
855+struct sdw_stream_runtime *sdw_alloc_stream(const char *stream_name);
856856 void sdw_release_stream(struct sdw_stream_runtime *stream);
857857 int sdw_stream_add_master(struct sdw_bus *bus,
858858 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