[PATCH] I2C Part 1 - Remove some redundancy from the i2c-core.c file
cminyard at mvista.com
Fri Apr 1 00:03:51 CEST 2005
Ok, I have taken some time from suffering (packaging perl modules) to
get back to this.
Here's a new patch with the debug calls removed, as you requested.
Jean Delvare wrote:
>>Call i2c_transfer() from i2c_master_send() and i2c_master_recv()
>>to avoid the redundant code that was in all three functions.
>I like this. You're right, there is code duplication here, which we can
>get rid of, so let's do so. I'd only have one comments about your patch:
>You can get rid of the dev_dbg calls in i2c_master_send() and
>i2c_master_recv() altogether IMHO. I recently updated i2c_transfer() to
>make it more verbose in debug mode , so the debug messages in
>i2c_master_send() and i2c_master_recv() are mostly redundant now as far
>as I can see.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2866 bytes
Desc: not available
More information about the lm-sensors