Make stream name const pointer
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -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, |