]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: phytec: imx8m_som_detection: change phytec_imx8m_detect return type
authorYannic Moog <y.moog@phytec.de>
Wed, 20 Dec 2023 08:45:32 +0000 (09:45 +0100)
committerFabio Estevam <festevam@denx.de>
Wed, 20 Dec 2023 18:04:46 +0000 (15:04 -0300)
commite2be177c8511580bab3c368e8b173135471b671e
treefac068a3245f09f2ba68ca30c892c547835f9954
parentcd3387f132f5f02789b8b7ba26094ed91b9eb457
board: phytec: imx8m_som_detection: change phytec_imx8m_detect return type

phytec_imx8m_detect returns -1 on error, but the return type is u8
leading to 255 return values. Fix this by changing the return type to
int; there is no reason to keep it as u8 .

Signed-off-by: Yannic Moog <y.moog@phytec.de>
board/phytec/common/imx8m_som_detection.c
board/phytec/common/imx8m_som_detection.h