Commit Graph

7 Commits

Author SHA1 Message Date
Adam Serbinski
33bf949e4f Clang: fix for arithmetic disallowed on void pointers 2020-09-28 10:21:21 -05:00
Ben Chan
f9b5b38b50 qmi: pass `const struct qrtr_packet' to qmi_decode_header()
Similar to qmi_decode_message(), qmi_decode_header() doesn't modify the
`struct qrtr_packet' argument. This patch makes qmi_decode_header() to
take a `const struct qrtr_packet' argument like qmi_decode_message()
does.

Contributed by Jacob Rutherford <jruthe@chromium.org>
2018-07-26 06:15:57 -07:00
Arun Kumar Neelakantam
4c4987ba7d libqrtr : Add support for signed one byte enum.
Add support to encode/decode one BYTE signed enum data type.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-07-16 09:03:29 -07:00
Eric Caruso
f64c25c8af Unify logging into one function
This prepares us to add log-to-syslog functionality by passing
all logging through one place.

Signed-off-by: Eric Caruso <ejcaruso@chromium.org>
2018-05-08 17:16:33 -07:00
Eric Caruso
b0f8857615 qmi: remove unused include
This include provides err, errx, etc. but it looks like all
error logging in qmi.c is done with fprintf, so there's no
reason to include it.

Change-Id: I4f4a71323a55fca981ef8df994fe624a590e3802
2018-04-27 16:28:19 -07:00
Bjorn Andersson
dbffdd0193 libqrtr: Remove depricated functions
Post-QMI clean up of old interfaces and some duplicated definitions.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-02-01 02:06:57 +00:00
Bjorn Andersson
70b6f4900d qmi: Introduce QMI encoder/decoder helpers
The QMI functions can be used to deal with QMI-encoded data in
qrtr_packet objects. The structure-description is the same element-info
arrays as is used in the upstream Linux kernel.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-01-31 21:07:45 +00:00