From patchwork Wed Apr 1 16:18:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 228393 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCC42C43331 for ; Wed, 1 Apr 2020 16:45:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 65CE8206E9 for ; Wed, 1 Apr 2020 16:45:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585759548; bh=7whl0JBtgb0BYO7ddl2v6ivXMrcuIimtiWEZ6h1tfI8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=sbzpjC/fC4RYo2Tdf71bAfcJLhkUgkwqJF3ewXzxgdADZBsw445lgfjoSFgfbaEiK o/VUtIyC51JGgayjlLt+CV5TqHsqiH1upj90TEFWCAOdDCcT2zEyZsn8lUejKXvBqN hS+xEQBHkdPNgguJKMPXOYbFtJ7fMctuMTDjzhKk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389511AbgDAQpr (ORCPT ); Wed, 1 Apr 2020 12:45:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:46970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732482AbgDAQpm (ORCPT ); Wed, 1 Apr 2020 12:45:42 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D61EE2063A; Wed, 1 Apr 2020 16:45:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585759542; bh=7whl0JBtgb0BYO7ddl2v6ivXMrcuIimtiWEZ6h1tfI8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RKGfc3THAZ2d72GQjU13DNJFzweWN3uOL6kUAl9kbY8ThgyCcBnFrZ4UWCsVln7ul /OKMWEyhOXWViaPci2hepNY96CwT8ZKP2HgexwWIq21ygLaIs3rgS1EI7aXMEXhI70 S/F133WqTgf2DiQiW4EEXYlhPSqAGYC9DboJw8cY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Gustavo A. R. Silva" , Dmitry Torokhov , Sasha Levin Subject: [PATCH 4.14 111/148] Input: raydium_i2c_ts - use true and false for boolean values Date: Wed, 1 Apr 2020 18:18:23 +0200 Message-Id: <20200401161603.213329150@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200401161552.245876366@linuxfoundation.org> References: <20200401161552.245876366@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Gustavo A. R. Silva [ Upstream commit 6cad4e269e25dddd7260a53e9d9d90ba3a3cc35a ] Return statements in functions returning bool should use true or false instead of an integer value. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/touchscreen/raydium_i2c_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/raydium_i2c_ts.c b/drivers/input/touchscreen/raydium_i2c_ts.c index 4f1d3fd5d4121..172f66e9da2d1 100644 --- a/drivers/input/touchscreen/raydium_i2c_ts.c +++ b/drivers/input/touchscreen/raydium_i2c_ts.c @@ -466,7 +466,7 @@ static bool raydium_i2c_boot_trigger(struct i2c_client *client) } } - return 0; + return false; } static bool raydium_i2c_fw_trigger(struct i2c_client *client) @@ -492,7 +492,7 @@ static bool raydium_i2c_fw_trigger(struct i2c_client *client) } } - return 0; + return false; } static int raydium_i2c_check_path(struct i2c_client *client)