From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Mon, 1 Feb 2021 15:25:34 +0800 Subject: [PATCH v3 07/12] smbios: Drop the eos parameter In-Reply-To: <20210124104327.v3.7.I6c28d884e356bafbb28c4fa3a1ce66b9fa761158@changeid> References: <20210124174331.3462226-1-sjg@chromium.org> <20210124104327.v3.7.I6c28d884e356bafbb28c4fa3a1ce66b9fa761158@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jan 25, 2021 at 1:51 AM Simon Glass wrote: > > We can store this in the context and avoid passing it to each function. > This makes it easier to follow and will also allow keeping track of the > end of the string table (in future patches). > > Add an 'eos' field to the context and create a function to set it up. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Fix comment for smbios_add_prop() > - Rename set_eos() to smbios_set_eos() > > lib/smbios.c | 60 +++++++++++++++++++++++++++++++--------------------- > 1 file changed, 36 insertions(+), 24 deletions(-) > Reviewed-by: Bin Meng