* [PATCH] gpio expander debug cleanup
@ 2006-01-02 16:29 Komal Shah
2006-01-03 19:10 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Komal Shah @ 2006-01-02 16:29 UTC (permalink / raw)
To: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 321 bytes --]
Tony,
Do we really need this debug macros? If not, I have removed it in this
patch.
Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>
---Komal Shah
http://komalshah.blogspot.com/
__________________________________
Yahoo! for Good - Make a difference this year.
http://brand.yahoo.com/cybergivingweek2005/
[-- Attachment #2: 1819432133-gpio-expa-cleanup.patch --]
[-- Type: text/plain, Size: 903 bytes --]
diff --git a/drivers/i2c/chips/gpio_expander_omap.c b/drivers/i2c/chips/gpio_expander_omap.c
index 7f42864..d63a6ee 100644
--- a/drivers/i2c/chips/gpio_expander_omap.c
+++ b/drivers/i2c/chips/gpio_expander_omap.c
@@ -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;
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-03 19:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-02 16:29 [PATCH] gpio expander debug cleanup Komal Shah
2006-01-03 19:10 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox