net: ipa: Make QMI message rules const
Commit ff6d365898d4 ("soc: qcom: qmi: use const for struct qmi_elem_info") allows QMI message encoding/decoding rules to be const, so do that for IPA. Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com> Reviewed-by: Alex Elder <elder@linaro.org> Reviewed-by: Sibi Sankar <quic_sibis@quicinc.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
070f822d07
commit
c0facc045a
@ -9,7 +9,7 @@
|
||||
#include "ipa_qmi_msg.h"
|
||||
|
||||
/* QMI message structure definition for struct ipa_indication_register_req */
|
||||
struct qmi_elem_info ipa_indication_register_req_ei[] = {
|
||||
const struct qmi_elem_info ipa_indication_register_req_ei[] = {
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
@ -116,7 +116,7 @@ struct qmi_elem_info ipa_indication_register_req_ei[] = {
|
||||
};
|
||||
|
||||
/* QMI message structure definition for struct ipa_indication_register_rsp */
|
||||
struct qmi_elem_info ipa_indication_register_rsp_ei[] = {
|
||||
const struct qmi_elem_info ipa_indication_register_rsp_ei[] = {
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
@ -134,7 +134,7 @@ struct qmi_elem_info ipa_indication_register_rsp_ei[] = {
|
||||
};
|
||||
|
||||
/* QMI message structure definition for struct ipa_driver_init_complete_req */
|
||||
struct qmi_elem_info ipa_driver_init_complete_req_ei[] = {
|
||||
const struct qmi_elem_info ipa_driver_init_complete_req_ei[] = {
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_1_BYTE,
|
||||
.elem_len = 1,
|
||||
@ -151,7 +151,7 @@ struct qmi_elem_info ipa_driver_init_complete_req_ei[] = {
|
||||
};
|
||||
|
||||
/* QMI message structure definition for struct ipa_driver_init_complete_rsp */
|
||||
struct qmi_elem_info ipa_driver_init_complete_rsp_ei[] = {
|
||||
const struct qmi_elem_info ipa_driver_init_complete_rsp_ei[] = {
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
@ -169,7 +169,7 @@ struct qmi_elem_info ipa_driver_init_complete_rsp_ei[] = {
|
||||
};
|
||||
|
||||
/* QMI message structure definition for struct ipa_init_complete_ind */
|
||||
struct qmi_elem_info ipa_init_complete_ind_ei[] = {
|
||||
const struct qmi_elem_info ipa_init_complete_ind_ei[] = {
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
@ -187,7 +187,7 @@ struct qmi_elem_info ipa_init_complete_ind_ei[] = {
|
||||
};
|
||||
|
||||
/* QMI message structure definition for struct ipa_mem_bounds */
|
||||
struct qmi_elem_info ipa_mem_bounds_ei[] = {
|
||||
const struct qmi_elem_info ipa_mem_bounds_ei[] = {
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
@ -208,7 +208,7 @@ struct qmi_elem_info ipa_mem_bounds_ei[] = {
|
||||
};
|
||||
|
||||
/* QMI message structure definition for struct ipa_mem_array */
|
||||
struct qmi_elem_info ipa_mem_array_ei[] = {
|
||||
const struct qmi_elem_info ipa_mem_array_ei[] = {
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
@ -229,7 +229,7 @@ struct qmi_elem_info ipa_mem_array_ei[] = {
|
||||
};
|
||||
|
||||
/* QMI message structure definition for struct ipa_mem_range */
|
||||
struct qmi_elem_info ipa_mem_range_ei[] = {
|
||||
const struct qmi_elem_info ipa_mem_range_ei[] = {
|
||||
{
|
||||
.data_type = QMI_UNSIGNED_4_BYTE,
|
||||
.elem_len = 1,
|
||||
@ -250,7 +250,7 @@ struct qmi_elem_info ipa_mem_range_ei[] = {
|
||||
};
|
||||
|
||||
/* QMI message structure definition for struct ipa_init_modem_driver_req */
|
||||
struct qmi_elem_info ipa_init_modem_driver_req_ei[] = {
|
||||
const struct qmi_elem_info ipa_init_modem_driver_req_ei[] = {
|
||||
{
|
||||
.data_type = QMI_OPT_FLAG,
|
||||
.elem_len = 1,
|
||||
@ -645,7 +645,7 @@ struct qmi_elem_info ipa_init_modem_driver_req_ei[] = {
|
||||
};
|
||||
|
||||
/* QMI message structure definition for struct ipa_init_modem_driver_rsp */
|
||||
struct qmi_elem_info ipa_init_modem_driver_rsp_ei[] = {
|
||||
const struct qmi_elem_info ipa_init_modem_driver_rsp_ei[] = {
|
||||
{
|
||||
.data_type = QMI_STRUCT,
|
||||
.elem_len = 1,
|
||||
|
@ -247,15 +247,15 @@ struct ipa_init_modem_driver_rsp {
|
||||
};
|
||||
|
||||
/* Message structure definitions defined in "ipa_qmi_msg.c" */
|
||||
extern struct qmi_elem_info ipa_indication_register_req_ei[];
|
||||
extern struct qmi_elem_info ipa_indication_register_rsp_ei[];
|
||||
extern struct qmi_elem_info ipa_driver_init_complete_req_ei[];
|
||||
extern struct qmi_elem_info ipa_driver_init_complete_rsp_ei[];
|
||||
extern struct qmi_elem_info ipa_init_complete_ind_ei[];
|
||||
extern struct qmi_elem_info ipa_mem_bounds_ei[];
|
||||
extern struct qmi_elem_info ipa_mem_array_ei[];
|
||||
extern struct qmi_elem_info ipa_mem_range_ei[];
|
||||
extern struct qmi_elem_info ipa_init_modem_driver_req_ei[];
|
||||
extern struct qmi_elem_info ipa_init_modem_driver_rsp_ei[];
|
||||
extern const struct qmi_elem_info ipa_indication_register_req_ei[];
|
||||
extern const struct qmi_elem_info ipa_indication_register_rsp_ei[];
|
||||
extern const struct qmi_elem_info ipa_driver_init_complete_req_ei[];
|
||||
extern const struct qmi_elem_info ipa_driver_init_complete_rsp_ei[];
|
||||
extern const struct qmi_elem_info ipa_init_complete_ind_ei[];
|
||||
extern const struct qmi_elem_info ipa_mem_bounds_ei[];
|
||||
extern const struct qmi_elem_info ipa_mem_array_ei[];
|
||||
extern const struct qmi_elem_info ipa_mem_range_ei[];
|
||||
extern const struct qmi_elem_info ipa_init_modem_driver_req_ei[];
|
||||
extern const struct qmi_elem_info ipa_init_modem_driver_rsp_ei[];
|
||||
|
||||
#endif /* !_IPA_QMI_MSG_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user