linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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 v11 7/8] i2c: octeon: Use booleon values for booleon variables
Date: Wed, 24 Aug 2016 23:25:48 +0200	[thread overview]
Message-ID: <20160824212549.16140-8-jglauber@cavium.com> (raw)
In-Reply-To: <20160824212549.16140-1-jglauber@cavium.com>

Initialize booleon values with true instead of 1.

Signed-off-by: Jan Glauber <jglauber@cavium.com>
---
 drivers/i2c/busses/i2c-octeon-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-octeon-core.c b/drivers/i2c/busses/i2c-octeon-core.c
index a327a5f..f45ea5e 100644
--- a/drivers/i2c/busses/i2c-octeon-core.c
+++ b/drivers/i2c/busses/i2c-octeon-core.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;
 
 	/*
-- 
2.9.0.rc0.21.g7777322

  parent reply	other threads:[~2016-08-24 21:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-24 21:25 [PATCH v11 0/8] i2c-octeon and i2c-thunderx driver Jan Glauber
2016-08-24 21:25 ` [PATCH v11 1/8] i2c: octeon: Rename driver to prepare for split Jan Glauber
2016-08-24 21:25 ` [PATCH v11 2/8] i2c: octeon: Split the driver into two parts Jan Glauber
2016-08-24 21:25 ` [PATCH v11 3/8] i2c: thunderx: Add i2c driver for ThunderX SOC Jan Glauber
2016-08-24 21:25 ` [PATCH v11 4/8] i2c: thunderx: Add SMBUS alert support Jan Glauber
2016-08-24 21:25 ` [PATCH v11 5/8] i2c: octeon,thunderx: Move register offsets to struct Jan Glauber
2016-08-24 21:25 ` [PATCH v11 6/8] i2c: octeon: Sort include files alphabetically Jan Glauber
2016-08-24 21:25 ` Jan Glauber [this message]
2016-08-24 21:25 ` [PATCH v11 8/8] i2c: octeon: thunderx: Add MAINTAINERS entry Jan Glauber
2016-08-25 16:37 ` [PATCH v11 0/8] i2c-octeon and i2c-thunderx driver Wolfram Sang

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=20160824212549.16140-8-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).