From: Jan Glauber <jglauber@cavium.com>
To: Wolfram Sang <wsa@the-dreams.de>
Cc: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org,
David Daney <ddaney@caviumnetworks.com>,
Jan Glauber <jglauber@cavium.com>
Subject: [PATCH v8 7/8] i2c: cavium: Use booleon values for booleon variables
Date: Mon, 2 May 2016 19:35:47 +0200 [thread overview]
Message-ID: <1462210548-4648-8-git-send-email-jglauber@cavium.com> (raw)
In-Reply-To: <1462210548-4648-1-git-send-email-jglauber@cavium.com>
Initialize booleon values with true instead of 1.
Signed-off-by: Jan Glauber <jglauber@cavium.com>
---
drivers/i2c/busses/i2c-cavium.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/i2c/busses/i2c-cavium.c b/drivers/i2c/busses/i2c-cavium.c
index e95ee5c..140f0d1 100644
--- a/drivers/i2c/busses/i2c-cavium.c
+++ b/drivers/i2c/busses/i2c-cavium.c
@@ -63,7 +63,7 @@ static bool octeon_i2c_test_ready(struct octeon_i2c *i2c, bool *first)
static int octeon_i2c_wait(struct octeon_i2c *i2c)
{
long time_left;
- bool first = 1;
+ bool first = true;
/*
* Some chip revisions don't assert the irq in the interrupt
@@ -176,7 +176,7 @@ static void octeon_i2c_hlc_disable(struct octeon_i2c *i2c)
*/
static int octeon_i2c_hlc_wait(struct octeon_i2c *i2c)
{
- bool first = 1;
+ bool first = true;
int time_left;
/*
--
1.9.1
next prev parent reply other threads:[~2016-05-02 17:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-02 17:35 [PATCH v8 0/8] i2c-octeon and i2c-thunderx driver Jan Glauber
2016-05-02 17:35 ` [PATCH v8 1/8] i2c: octeon: Rename driver to prepare for split Jan Glauber
2016-05-02 17:35 ` [PATCH v8 2/8] i2c: octeon: Split the driver into two parts Jan Glauber
2016-05-02 17:35 ` [PATCH v8 3/8] i2c: thunderx: Add i2c driver for ThunderX SOC Jan Glauber
2016-05-02 17:35 ` [PATCH v8 4/8] i2c: thunderx: Add smbus alert support Jan Glauber
2016-05-02 17:35 ` [PATCH v8 5/8] i2c: octeon,thunderx: Move register offsets to struct Jan Glauber
2016-05-02 17:35 ` [PATCH v8 6/8] i2c: octeon: Sort include files alphabetically Jan Glauber
2016-05-02 17:35 ` Jan Glauber [this message]
2016-05-02 17:35 ` [PATCH v8 8/8] i2c: octeon: thunderx: Add MAINTAINERS entry Jan Glauber
2016-05-11 17:20 ` [PATCH v8 0/8] i2c-octeon and i2c-thunderx driver Jan Glauber
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=1462210548-4648-8-git-send-email-jglauber@cavium.com \
--to=jglauber@cavium.com \
--cc=ddaney@caviumnetworks.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wsa@the-dreams.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).