]> git.dujemihanovic.xyz Git - u-boot.git/commit
xilinx: fru: Replace spaces with \0 in detected name
authorMichal Simek <michal.simek@xilinx.com>
Thu, 12 Aug 2021 09:03:49 +0000 (11:03 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 26 Aug 2021 06:14:42 +0000 (08:14 +0200)
commit530560b6f8eb06f89ee6d940701a24747bf12d2b
treebefd3dbc31fb65387d48bfbce9193841ad6319db
parentedd530651a0045c53b18fde413db7fd8dc3693be
xilinx: fru: Replace spaces with \0 in detected name

FRU spec expected \0 for unused symbols but unfortunately a lot of boards
are using spaces instead of \0. That's why after saving it to desc->name
name is checked again and all spaces are converted to \0. This will ensure
that names can be used for string manipulations like concatenation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/common/board.c