Make stream name const pointer
Unified · Split
| @@ -865,7 +865,7 @@ EXPORT_SYMBOL(sdw_release_stream); · 864 unmodified lines | ||
| 865 | 865 | * sdw_alloc_stream should be called only once per stream. Typically |
| 866 | 866 | * invoked from ALSA/ASoC machine/platform driver. |
| 867 | 867 | */ |
| 868 | −struct sdw_stream_runtime *sdw_alloc_stream(char *stream_name) | |
| 868 | +struct sdw_stream_runtime *sdw_alloc_stream(const char *stream_name) | |
| 869 | 869 | { |
| 870 | 870 | struct sdw_stream_runtime *stream; |
| 871 | 871 | |
| @@ -844,7 +844,7 @@ struct sdw_stream_params { · 843 unmodified lines | ||
| 844 | 844 | * @m_rt_count: Count of Master runtime(s) in this stream |
| 845 | 845 | */ |
| 846 | 846 | struct sdw_stream_runtime { |
| 847 | − char *name; | |
| 847 | + const char *name; | |
| 848 | 848 | struct sdw_stream_params params; |
| 849 | 849 | enum sdw_stream_state state; |
| 850 | 850 | enum sdw_stream_type type; |
| @@ -852,7 +852,7 @@ struct sdw_stream_runtime { · 1 unmodified line | ||
| 852 | 852 | int m_rt_count; |
| 853 | 853 | }; |
| 854 | 854 | |
| 855 | −struct sdw_stream_runtime *sdw_alloc_stream(char *stream_name); | |
| 855 | +struct sdw_stream_runtime *sdw_alloc_stream(const char *stream_name); | |
| 856 | 856 | void sdw_release_stream(struct sdw_stream_runtime *stream); |
| 857 | 857 | int sdw_stream_add_master(struct sdw_bus *bus, |
| 858 | 858 | struct sdw_stream_config *stream_config, |