[PATCH] I2C: Remove redundancy from i2c-core.c
authorJean Delvare <khali@linux-fr.org>
Sat, 7 May 2005 20:58:46 +0000 (22:58 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Jun 2005 04:51:55 +0000 (21:51 -0700)
commit815f55f280fb2781ba1c2a350516b73e55119c60
tree48c06bd1650d44aa274989ce2696eb5091d3805c
parent30aedcb33970367e50b5edf373e9cd1a5cebcbe1
[PATCH] I2C: Remove redundancy from i2c-core.c

Call i2c_transfer() from i2c_master_send() and i2c_master_recv() to
avoid the redundant code that was in all three functions.  It also
removes unnecessary debug statements as suggested by Jean Delvare.

This is important for the non-blocking interfaces because they will
have to handle a non-blocking interface in this area.  Having it in
one place greatly simplifies the changes.

Signed-off-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/i2c-core.c