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

Unified · Split

2 files
  1. drivers/soundwire/stream.c +1 −1
  2. include/linux/soundwire/sdw.h +2 −2
drivers/soundwire/stream.c+1−1
@@ -865,7 +865,7 @@ EXPORT_SYMBOL(sdw_release_stream); · 864 unmodified lines
865865 * sdw_alloc_stream should be called only once per stream. Typically
866866 * invoked from ALSA/ASoC machine/platform driver.
867867 */
868−struct sdw_stream_runtime *sdw_alloc_stream(char *stream_name)
868+struct sdw_stream_runtime *sdw_alloc_stream(const char *stream_name)
869869 {
870870 struct sdw_stream_runtime *stream;
871871
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