diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2019-08-13 11:35:47 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-09-04 12:27:28 +0300 |
commit | dfcff3f8a5f18a0cfa233522b5647c2e6035fcb5 (patch) | |
tree | e372edf586b17b59325f0ef9dfe0bec620fa2bc9 /include/linux/soundwire | |
parent | c7578c1d6285252d862b324f6fc26dd5adc8517c (diff) | |
download | linux-dfcff3f8a5f18a0cfa233522b5647c2e6035fcb5.tar.xz |
soundwire: stream: make stream name a const pointer
Make stream name const pointer
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20190813083550.5877-3-srinivas.kandagatla@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/linux/soundwire')
-rw-r--r-- | include/linux/soundwire/sdw.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h index 9932eabcb581..ea787201c3ac 100644 --- a/include/linux/soundwire/sdw.h +++ b/include/linux/soundwire/sdw.h @@ -844,7 +844,7 @@ struct sdw_stream_params { * @m_rt_count: Count of Master runtime(s) in this stream */ struct sdw_stream_runtime { - char *name; + const char *name; struct sdw_stream_params params; enum sdw_stream_state state; enum sdw_stream_type type; @@ -852,7 +852,7 @@ struct sdw_stream_runtime { int m_rt_count; }; -struct sdw_stream_runtime *sdw_alloc_stream(char *stream_name); +struct sdw_stream_runtime *sdw_alloc_stream(const char *stream_name); void sdw_release_stream(struct sdw_stream_runtime *stream); int sdw_stream_add_master(struct sdw_bus *bus, struct sdw_stream_config *stream_config, |