Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39286 )
Change subject: drivers/generic/max98357a: Allow custom _HID from config
......................................................................
Patch Set 11:
(1 comment)
https://review.coreboot.org/c/coreboot/+/39286/11/src/drivers/generic/max983...
File src/drivers/generic/max98357a/max98357a.c:
https://review.coreboot.org/c/coreboot/+/39286/11/src/drivers/generic/max983...
PS11, Line 46: if (!config->hid)
: acpigen_write_name_string("_HID", MAX98357A_ACPI_HID);
: else
: acpigen_write_name_string("_HID", config->hid);
I had another thought... what about a "variant" option in chip.h that has enumerated values for […]
Depending on sed capabilities in your machine you can try to search and replace using the below command:
find . -name *.cb | xargs sed -i -r 's/^([\t]+)(.*max98357a)/\1\2\n\1\tregister "hid" = "MAX98357A"/g'
I donot see a need, but if required use Static assert to ensure that all occurrences are handled.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/39286
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I22d2d078a9a4eb6ab330da8439737ff5133086d4
Gerrit-Change-Number: 39286
Gerrit-PatchSet: 11
Gerrit-Owner: Varshit B Pandya
varshit.b.pandya@intel.com
Gerrit-Reviewer: Aamir Bohra
aamir.bohra@intel.com
Gerrit-Reviewer: Bora Guvendik
bora.guvendik@intel.com
Gerrit-Reviewer: Divagar Mohandass
divagar.mohandass@intel.com
Gerrit-Reviewer: Karthik Ramasubramanian
kramasub@google.com
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: Usha P
usha.p@intel.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Furquan Shaikh
furquan@google.com
Gerrit-CC: Maulik V Vaghela
maulik.v.vaghela@intel.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Sat, 14 Mar 2020 00:27:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tim Wawrzynczak
twawrzynczak@chromium.org
Comment-In-Reply-To: Aamir Bohra
aamir.bohra@intel.com
Gerrit-MessageType: comment