From patchwork Sat Jun 28 16:34:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Handrigan X-Patchwork-Id: 4439951 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1CCEA9F36A for ; Sat, 28 Jun 2014 16:40:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 52A2C203B1 for ; Sat, 28 Jun 2014 16:40:04 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id CC76D2021A for ; Sat, 28 Jun 2014 16:40:02 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 43887261A74; Sat, 28 Jun 2014 18:40:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 134B0261A10; Sat, 28 Jun 2014 18:39:50 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 35EB4261A27; Sat, 28 Jun 2014 18:39:48 +0200 (CEST) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1blp0186.outbound.protection.outlook.com [207.46.163.186]) by alsa0.perex.cz (Postfix) with ESMTP id 1B4A02619EA for ; Sat, 28 Jun 2014 18:39:40 +0200 (CEST) Received: from BN1BFFO11FD055.protection.gbl (10.58.144.34) by BN1BFFO11HUB021.protection.gbl (10.58.144.168) with Microsoft SMTP Server (TLS) id 15.0.969.12; Sat, 28 Jun 2014 16:39:37 +0000 Received: from mail1.cirrus.com (141.131.3.20) by BN1BFFO11FD055.mail.protection.outlook.com (10.58.145.10) with Microsoft SMTP Server (TLS) id 15.0.969.12 via Frontend Transport; Sat, 28 Jun 2014 16:39:37 +0000 Received: from ex3.ad.cirrus.com ([141.131.36.34]) by mail1.cirrus.com (8.13.8/8.12.11) with ESMTP id s5SGdgi9011252; Sat, 28 Jun 2014 11:39:42 -0500 Received: from localhost (141.131.108.102) by EX3.ad.cirrus.com (141.131.36.39) with Microsoft SMTP Server id 14.3.174.1; Sat, 28 Jun 2014 11:39:35 -0500 From: Paul Handrigan To: Date: Sat, 28 Jun 2014 11:34:25 -0500 Message-ID: <1403973265-19787-1-git-send-email-Paul.Handrigan@cirrus.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:141.131.3.20; CTRY:US; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(438002)(189002)(199002)(74662001)(92726001)(102836001)(104166001)(31966008)(83072002)(77156001)(81542001)(47776003)(99396002)(64706001)(80022001)(87286001)(50986999)(62966002)(107046002)(74502001)(89996001)(46102001)(2351001)(92566001)(76482001)(81342001)(77096002)(93916002)(85852003)(86362001)(79102001)(20776003)(50466002)(36756003)(76506005)(19580405001)(57986006)(50226001)(4396001)(85306003)(95666004)(6806004)(44976005)(77982001)(48376002)(19580395003)(87936001)(88136002)(106466001)(21056001)(83322001)(229853001); DIR:OUT; SFP:; SCL:1; SRVR:BN1BFFO11HUB021; H:mail1.cirrus.com; FPR:; MLV:sfv; PTR:mail1.cirrus.com; MX:1; A:1; LANG:en; X-OriginatorOrg: cirrus4.onmicrosoft.com X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 0256C18696 Received-SPF: Pass (: domain of cirrus.com designates 141.131.3.20 as permitted sender) receiver=; client-ip=141.131.3.20; helo=mail1.cirrus.com; Authentication-Results: spf=pass (sender IP is 141.131.3.20) smtp.mailfrom=Paul.Handrigan@cirrus.com; Cc: brian.austin@cirrus.com, broonie@kernel.org, lgirdwood@gmail.com, Paul Handrigan Subject: [alsa-devel] [PATCH] ASoC: cs4265: Change return values to boolean. X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The cs4265_volatile_register reutrns a bool. The function now returns true or false vs 1 and 0. Signed-off-by: Paul Handrigan --- sound/soc/codecs/cs4265.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c index c9c04d2..4c4bf21 100644 --- a/sound/soc/codecs/cs4265.c +++ b/sound/soc/codecs/cs4265.c @@ -87,9 +87,9 @@ static bool cs4265_volatile_register(struct device *dev, unsigned int reg) { switch (reg) { case CS4265_INT_STATUS: - return 1; + return true; default: - return 0; + return false; } }