Rename parse_package() to be qmi_package_parse(), and have it assign
the qmi_package pointer internally rather returning it. This makes
the function name match the pattern used for all other production
rules.
The one caller of qmi_package_parse() assumes the package name has
been specified. When parsing has completed, check to ensure the
package is specified, and only allow it to be specified once.
Signed-off-by: Alex Elder <elder@linaro.org>
Message-Id: <20211001232338.769309-26-elder@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>