]> Git Repo - linux.git/commit
soc: qcom: qmi: use const for struct qmi_elem_info
authorJeff Johnson <[email protected]>
Mon, 22 Aug 2022 15:34:35 +0000 (08:34 -0700)
committerBjorn Andersson <[email protected]>
Mon, 29 Aug 2022 22:33:01 +0000 (17:33 -0500)
commitff6d365898d4d31bd557954c7fc53f38977b491c
tree2cb37b91cf3f2f6555f32483c209323c7023951f
parent7eb89c17abd2574f627c1277a15f6ff64bec33a4
soc: qcom: qmi: use const for struct qmi_elem_info

Currently all usage of struct qmi_elem_info, which is used to define
the QMI message encoding/decoding rules, does not use const. This
prevents clients from registering const arrays. Since these arrays are
always pre-defined, they should be const, so add the const qualifier
to all places in the QMI interface where struct qmi_elem_info is used.

Once this patch is in place, clients can independently update their
pre-defined arrays to be const, as demonstrated in the QMI sample
code.

Signed-off-by: Jeff Johnson <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
drivers/soc/qcom/qmi_encdec.c
drivers/soc/qcom/qmi_interface.c
include/linux/soc/qcom/qmi.h
samples/qmi/qmi_sample_client.c
This page took 0.067559 seconds and 4 git commands to generate.