mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
soundwire: qcom: constify static struct qcom_swrm_data global variables
The qcom_swrm_data structures is only required for setting soundwire params, so make the qcom_swrm_data structure const to allow the compiler to put it in read-only memory and avoid unintentional modifications. Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com> Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com> Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com> Link: https://lore.kernel.org/r/1646224982-3361-3-git-send-email-quic_srivasam@quicinc.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
04d46a7b38
commit
35732a0694
@ -181,12 +181,12 @@ struct qcom_swrm_data {
|
||||
u32 default_rows;
|
||||
};
|
||||
|
||||
static struct qcom_swrm_data swrm_v1_3_data = {
|
||||
static const struct qcom_swrm_data swrm_v1_3_data = {
|
||||
.default_rows = 48,
|
||||
.default_cols = 16,
|
||||
};
|
||||
|
||||
static struct qcom_swrm_data swrm_v1_5_data = {
|
||||
static const struct qcom_swrm_data swrm_v1_5_data = {
|
||||
.default_rows = 50,
|
||||
.default_cols = 16,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user