diff mbox series

[v3,15/16] gpio: Define the log category in the uclass

Message ID 20210124211155.3704093-16-sjg@chromium.org
State Superseded
Delegated to: Tom Rini
Headers show
Series gpio: Update and simplify the uclass API | expand

Commit Message

Simon Glass Jan. 24, 2021, 9:11 p.m. UTC
This uses log_debug(), etc. but does not define the category. Fix this.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v3:
- Split out the log-category change to a separate patch

 drivers/gpio/gpio-uclass.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c
index 7f8bbb4eeac..520d7489644 100644
--- a/drivers/gpio/gpio-uclass.c
+++ b/drivers/gpio/gpio-uclass.c
@@ -3,6 +3,8 @@ 
  * Copyright (c) 2013 Google, Inc
  */
 
+#define LOG_CATEGORY	UCLASS_GPIO
+
 #include <common.h>
 #include <dm.h>
 #include <log.h>