Skip to contentSkip to conversation

gpio expander debug cleanup

PATCH In review Komal Shah 2 participants 2 messages Jan 2, 2006 – Jan 3, 2006

lore
Share & tools
lore

Komal Shah

author
#0 lore raw

PATCH 1/1 gpio expander debug cleanup

Tony,

Do we really need this debug macros? If not, I have removed it in this patch.

---Komal Shah
http://komalshah.blogspot.com/

__________________________________
Yahoo! for Good - Make a difference this year.
http://brand.yahoo.com/cybergivingweek2005/

drivers/i2c/chips/gpio_expander_omap.c +0 -11
index 7f42864..d63a6ee 100644
@@ -19,16 +19,6 @@
 int read_gpio_expa(u8 * val, int addr);
 int write_gpio_expa(u8 val, int addr);
 
-#define OMAP_IRDA_DEBUG	0	
-
-#if (OMAP_IRDA_DEBUG > 0)
-#define DBG(format, args...) printk(KERN_ERR "%s(): " format, __FUNCTION__, ## args);
-#define DBG_IRQ(format, args...) printk(KERN_ERR "%s(): " format, __FUNCTION__, ## args);
-#else
-#define DBG(format, args...)
-#define DBG_IRQ(format, args...)
-#endif
-
 int write_gpio_expa(u8 val, int addr)
 {
 	struct i2c_adapter *adap;
@@ -71,7 +61,6 @@ int read_gpio_expa(u8 * val, int addr)
 	err = i2c_transfer(adap, msg, 1);
 	*val = data[0];
 
-	DBG("I2C: Read data is %x\n", (u8) * data);
 	if (err >= 0)
 		return 0;
 	return err;
#1 lore raw
Quoted 4 lines · Komal Shah

Tony,

Do we really need this debug macros? If not, I have removed it in this patch.

Pushing today.

Tony