From patchwork Mon May 2 17:35:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Glauber X-Patchwork-Id: 617637 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3qzBMk5c1Qz9t3x for ; Tue, 3 May 2016 03:37:38 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754821AbcEBRhK (ORCPT ); Mon, 2 May 2016 13:37:10 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35292 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754751AbcEBRgW (ORCPT ); Mon, 2 May 2016 13:36:22 -0400 Received: by mail-wm0-f65.google.com with SMTP id e201so18080894wme.2; Mon, 02 May 2016 10:36:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MVQXPMGwhDC9qkeCijsoXr4vbPsnCJi8JPrGcQkQ1j0=; b=Xpe2sMQjfeZzpBo3Hg7Qd0DTsxnOcFVeKBkdVy3mIMz51RI78vVUClta6kg/XAvr/E HcgODlQ7ZhdymFNnEbw0DXq2s0wdRC17r63SJJrJhMNeLI+5JqLTs9HQW7Kg+2yEpy/G w4YZE/lcBzvZTbBQGcJpnYjXB99E4jSPFhjrTCmM67xCt3zKCAgzIwWs+S/sHQhT6cZU GSq2a3gS/bMB59GAXaBsM0+r0OMvStDjq1Z/azr+fP8Z3ndBDoTL+laHnJYJ9PQj7Lus gEpzMD+YFoUHptPMooMbN6vte4rJ6GEdbjsG/LP0Q5YwaxRuFMB8lPixh//o//mSuCQA PuNw== X-Gm-Message-State: AOPr4FVovd1fnGX1Wnx5VExCZrwcKHv+OHloWRqqiYjY0F7yWatHRphJSslIoL4E39nj7A== X-Received: by 10.28.153.129 with SMTP id b123mr21528386wme.1.1462210580280; Mon, 02 May 2016 10:36:20 -0700 (PDT) Received: from hardcore.fritz.box (HSI-KBW-109-193-045-156.hsi7.kabel-badenwuerttemberg.de. [109.193.45.156]) by smtp.gmail.com with ESMTPSA id k139sm19976337wmg.24.2016.05.02.10.36.19 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 May 2016 10:36:19 -0700 (PDT) From: Jan Glauber To: Wolfram Sang Cc: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, David Daney , Jan Glauber Subject: [PATCH v8 7/8] i2c: cavium: Use booleon values for booleon variables Date: Mon, 2 May 2016 19:35:47 +0200 Message-Id: <1462210548-4648-8-git-send-email-jglauber@cavium.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1462210548-4648-1-git-send-email-jglauber@cavium.com> References: <1462210548-4648-1-git-send-email-jglauber@cavium.com> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Initialize booleon values with true instead of 1. Signed-off-by: Jan Glauber --- 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; /*