From: Ladislav Michl <ladis@linux-mips.org>
To: linux-omap-open-source@linux.omap.com
Subject: [PATCH 1/2] i2c-omap: Fix i2c_xfer for 1 msg
Date: Tue, 24 Jan 2006 13:46:54 +0100 [thread overview]
Message-ID: <20060124124654.GA21123@orphique> (raw)
omap_i2c_xfer is supposed to return number of messages successfuly
transfered. Remove bogus condition which causes it to fail when
transfering one message.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index fb41255..b021073 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -403,7 +403,7 @@ omap_i2c_xfer(struct i2c_adapter *adap,
break;
}
- if (r == 0 && num > 1)
+ if (r == 0)
r = num;
out:
omap_i2c_disable_clocks(dev);
next reply other threads:[~2006-01-24 12:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-24 12:46 Ladislav Michl [this message]
2006-02-02 18:31 ` [PATCH 1/2] i2c-omap: Fix i2c_xfer for 1 msg Ladislav Michl
2006-02-02 19:26 ` Tony Lindgren
2006-02-07 5:32 ` Tony Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060124124654.GA21123@orphique \
--to=ladis@linux-mips.org \
--cc=linux-omap-open-source@linux.omap.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.