diff mbox series

i2c: stub: remove definition of DEBUG

Message ID 20210114024456.1752286-1-trix@redhat.com
State Accepted
Commit bed3139613ea1665f7bbd0a53b247e7b2d43e2b1
Headers show
Series i2c: stub: remove definition of DEBUG | expand

Commit Message

Tom Rix Jan. 14, 2021, 2:44 a.m. UTC
From: Tom Rix <trix@redhat.com>

Defining DEBUG should only be done in development.
So remove DEBUG.

Signed-off-by: Tom Rix <trix@redhat.com>
---
 drivers/i2c/i2c-stub.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Wolfram Sang Jan. 17, 2021, 12:02 p.m. UTC | #1
On Wed, Jan 13, 2021 at 06:44:56PM -0800, trix@redhat.com wrote:
> From: Tom Rix <trix@redhat.com>

> 

> Defining DEBUG should only be done in development.

> So remove DEBUG.

> 

> Signed-off-by: Tom Rix <trix@redhat.com>


Yes, we can still enable them easily with the Kconfg debug option for
I2C core. Applied to for-next, thanks!
diff mbox series

Patch

diff --git a/drivers/i2c/i2c-stub.c b/drivers/i2c/i2c-stub.c
index 537a598e22db..d642cad219d9 100644
--- a/drivers/i2c/i2c-stub.c
+++ b/drivers/i2c/i2c-stub.c
@@ -7,7 +7,6 @@ 
 
 */
 
-#define DEBUG 1
 #define pr_fmt(fmt) "i2c-stub: " fmt
 
 #include <linux/errno.h>