Hung-Te Lin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/34634 )
Change subject: drivers/vpd: set bool type variable matching with key/value pair
......................................................................
Patch Set 3:
I still don't understand why you need to add all those complicated routes.
Seems like you are using the VPD format that is compatible with Google VPD 2.0,
then why not just call vpd_gets?
Even if we want to add a , this still looks bloated.
If you want to add a simple wrapper for identifying 1/0 values a better implementation is:
bool vpd_get_bool(const char *key, bool default_value);
or
int vpd_get_int(const char *key, int *result); // returns -1 on failure so we can detect 'non-exist'.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/34634
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iebdba59419a555147fc40391cf17cc6879d9e1b2
Gerrit-Change-Number: 34634
Gerrit-PatchSet: 3
Gerrit-Owner: jonzhang@fb.com
Gerrit-Reviewer: Andrey Petrov
andrey.petrov@gmail.com
Gerrit-Reviewer: David Hendricks
david.hendricks@gmail.com
Gerrit-Reviewer: Huang Jin
huang.jin@intel.com
Gerrit-Reviewer: Hung-Te Lin
hungte@chromium.org
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: Philipp Deppenwiese
zaolin.daisuki@gmail.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Reviewer: jonzhang@fb.com
Gerrit-Reviewer: Łukasz Siudut
Gerrit-Comment-Date: Fri, 02 Aug 2019 04:53:13 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment