[PATCH v2 3/5] power: regulator: scmi: define LOG_CATEGORY

Patrick Delaunay patrick.delaunay at foss.st.com
Thu Oct 28 16:57:24 CEST 2021


Define LOG_CATEGORY to allow filtering with log command.

Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
Acked-by: Etienne Carriere <etienne.carriere at linaro.org>
---

(no changes since v1)

 drivers/power/regulator/scmi_regulator.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/power/regulator/scmi_regulator.c b/drivers/power/regulator/scmi_regulator.c
index b3142bf4e1..3ddeaf4adc 100644
--- a/drivers/power/regulator/scmi_regulator.c
+++ b/drivers/power/regulator/scmi_regulator.c
@@ -2,6 +2,9 @@
 /*
  * Copyright (C) 2020-2021 Linaro Limited
  */
+
+#define LOG_CATEGORY UCLASS_REGULATOR
+
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
-- 
2.25.1



More information about the U-Boot mailing list