lib/spd: define part number in string
The part_num is defined as uint8_t[33] and we used to specify the value
as byte arrays: { 'E', 'D', 'F', 'A', '1', '6', '4', 'A', '2', ...}.
However, C compilers are smart enough to recognize and put string
literals (e.g., "EDFA164A2") into the byte array so we can rewrite as
.part_num = "EDFA164A2MA-JD-F",
for better readability.
BUG=None
TEST=emerge-$BOARD mosys
Change-Id: I594315e92573fa90fd5d5c2bd187367a2daf4004
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/mosys/+/2812538
Tested-by: Hung-Te Lin <hungte@chromium.org>
Auto-Submit: Hung-Te Lin <hungte@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
1 file changed