From f1affb5e67b98a523ee1bc9dff883e9a7666e930 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 11 Jun 2021 09:33:08 -0500 Subject: [PATCH] drivers: hwinfo: gecko: Fix build Fix how HAS_BROWNOUT so things build correct and without warnings. Signed-off-by: Kumar Gala --- drivers/hwinfo/hwinfo_gecko.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/hwinfo/hwinfo_gecko.c b/drivers/hwinfo/hwinfo_gecko.c index 9b772e373c..207662b40b 100644 --- a/drivers/hwinfo/hwinfo_gecko.c +++ b/drivers/hwinfo/hwinfo_gecko.c @@ -11,12 +11,13 @@ #include #include -#define HAS_BROWNOUT (defined(RMU_RSTCAUSE_BODUNREGRST) - || defined(RMU_RSTCAUSE_BODREGRST) - || defined(RMU_RSTCAUSE_AVDDBOD) || defined(RMU_RSTCAUSE_DVDDBOD) - || defined(RMU_RSTCAUSE_DECBOD) || defined(RMU_RSTCAUSE_BODAVDD0) - || defined(RMU_RSTCAUSE_BODAVDD1) - || (defined(BU_PRESENT) && defined(_SILICON_LABS_32B_SERIES_0))) +#if defined(RMU_RSTCAUSE_BODUNREGRST) || defined(RMU_RSTCAUSE_BODREGRST) || \ + defined(RMU_RSTCAUSE_AVDDBOD) || defined(RMU_RSTCAUSE_DVDDBOD) || \ + defined(RMU_RSTCAUSE_DECBOD) || defined(RMU_RSTCAUSE_BODAVDD0) || \ + defined(RMU_RSTCAUSE_BODAVDD1) || \ + (defined(BU_PRESENT) && defined(_SILICON_LABS_32B_SERIES_0)) +#define HAS_BROWNOUT 1 +#endif ssize_t z_impl_hwinfo_get_device_id(uint8_t *buffer, size_t length) {