From c7c1ff573b8cf26099c12dfe418c7ae2b4d64c8b Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Fri, 14 Jan 2022 17:13:29 +0100 Subject: [PATCH] gsm23003: fix docstring for osmo_plmn_from_bcd() The parameters described in the docstrings for osmo_plmn_from_bcd() do not match the actual parameter list. Change-Id: Ic0999dbe096a98418db7482bd110e20497d8e4a5 --- src/gsm/gsm23003.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/gsm/gsm23003.c b/src/gsm/gsm23003.c index 71d44fb99..b893873ba 100644 --- a/src/gsm/gsm23003.c +++ b/src/gsm/gsm23003.c @@ -445,14 +445,12 @@ void osmo_plmn_to_bcd(uint8_t *bcd_dst, const struct osmo_plmn_id *plmn) } } -/* Convert given 3-byte BCD buffer to integers and write results to *mcc and - * *mnc. The first three BCD digits result in the MCC and the remaining ones in - * the MNC. Return mnc_3_digits as false if the MNC's most significant digit is encoded as 0xF, true - * otherwise; i.e. true if MNC > 99 or if it is represented with leading zeros instead of 0xF. +/* Convert given 3-byte BCD buffer to integers and write results to plmn->mcc and plmn->mnc. The first three BCD digits + * result in the MCC and the remaining ones in the MNC. Set plmn->mnc_3_digits as false if the MNC's most significant + * digit is encoded as 0xF, true otherwise; i.e. true if MNC > 99 or if it is represented with leading zeros instead of + * 0xF. * \param[in] bcd_src 3-byte BCD buffer containing MCC+MNC representations. - * \param[out] mcc MCC result buffer, or NULL. - * \param[out] mnc MNC result buffer, or NULL. - * \param[out] mnc_3_digits Result buffer for 3-digit flag, or NULL. + * \param[out] plmn user provided memory to store the result. */ void osmo_plmn_from_bcd(const uint8_t *bcd_src, struct osmo_plmn_id *plmn) {