From patchwork Mon Aug 6 11:41:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 143483 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3183293ljj; Mon, 6 Aug 2018 04:41:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfrjNz2ahr5Q+yo6Vl4OwU94uEjtLV2za9gfjp+jaG2nl76s5fmnLsdMMgdC+J5+PD/KQhw X-Received: by 2002:a1c:b286:: with SMTP id b128-v6mr10658355wmf.121.1533555697699; Mon, 06 Aug 2018 04:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533555697; cv=none; d=google.com; s=arc-20160816; b=mKZy6e5LJIigrjp7XJAVfs0ciDefajc/5yItlL77yag/Iz3lO+vU8rt1s7MTjsgosl 7cI7XNVd40wMq1eNYidvtlrufF1jyptOENhugiH5sf0dc35wJU/qiLiw+T1mdhYrvsI0 EYk9CFAQGocnpo2L1IsA+2I7nrBgJYBaUmGnKzXrA+cJGkNibTG4KGbYWONeb0t4xXiI ZbnLRwDfQq4XWtcGSU7qMA5uZExKgmVZpYjcqVH5JdwDQ8LLh29+m7r6oAoGuI0M34XM +08T+xl6HMaXBMN8hLb8K0L0c5q2fnUlkaMWVGLGeWi0ElgYTuWJB6EmzkR8pCOpwXn8 5qsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=GDThSpvL15OwIGLoLlO60jnv4GkYRt49o9sinzCow1A=; b=jN/trO2hG8UsGyvFvDfWOOjwdFTg7PxC+A7LrcupRGYugq/8jaAH2Rn4cw0+Umum2K fqgBnZpEoKzEACbfUPezTxnZAvjDb01x0pxmjgqySVegyJ9FND/KGvA2KJzAGeIVuBI+ mujDGd9IB3EJG1PqXXSf5RGz6fsD+Y0BzN6/NDOcs4Qxv2+xhfZBRq8TPRg5uGgkrHA8 onPbiWnaTHULD9hKKRsavRfRguhHvEA0/rgVcFeQvsIqC5lZ4dP8kx++bTyWNz72dg7I uCNMK5RcjE5h4EkD5dZq8COvlBluSVZvVAJSWjYn+p1+xfYC5Qgg3PSmz8rmxs5IEmiU 8e5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=wGsVhopY; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id i19-v6si4983619wmb.67.2018.08.06.04.41.37; Mon, 06 Aug 2018 04:41:37 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=wGsVhopY; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 6259E26779D; Mon, 6 Aug 2018 13:41:36 +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 D847F26782A; Mon, 6 Aug 2018 13:41:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 4B9AA2676A3 for ; Mon, 6 Aug 2018 13:41:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=9LaytKBKKRyk9/G5kY6GNf3AOfp4RQX1POeFoBfFvZc=; b=wGsVhopYLP+y WW0bl2DlMiAJRz0IB6LWpFGnRx1GUsm+aB8tq8aUMjH65B58w6WKjB6I1+EXW0rcFnoj/n3/lJ8SY d6zSEhhS/KS3rPfEq47bPhDW8hnRsvMcFZoQRH3IDKymGcs0jobbxumFlcWprlgfG4rRxSKnv8iqF y74Pg=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1fmdtD-0007pl-Ii; Mon, 06 Aug 2018 11:41:31 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 4D2B81124240; Mon, 6 Aug 2018 12:41:31 +0100 (BST) From: Mark Brown To: Gustavo A. R. Silva In-Reply-To: Message-Id: <20180806114131.4D2B81124240@debutante.sirena.org.uk> Date: Mon, 6 Aug 2018 12:41:31 +0100 (BST) Cc: alsa-devel@alsa-project.org, Mark Brown , Charles Keepax Subject: [alsa-devel] Applied "ASoC: wm5100-tables: use true and false for boolean values" to the asoc tree 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: wm5100-tables: use true and false for boolean values has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 380ae4ec420304aa59adb36776eaf78aef37192c Mon Sep 17 00:00:00 2001 From: "Gustavo A. R. Silva" Date: Sat, 4 Aug 2018 16:54:54 -0500 Subject: [PATCH] ASoC: wm5100-tables: use true and false for boolean values 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 Acked-by: Charles Keepax Signed-off-by: Mark Brown --- sound/soc/codecs/wm5100-tables.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.18.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/wm5100-tables.c b/sound/soc/codecs/wm5100-tables.c index e239f4bf2460..9e987cf07450 100644 --- a/sound/soc/codecs/wm5100-tables.c +++ b/sound/soc/codecs/wm5100-tables.c @@ -30,7 +30,7 @@ bool wm5100_volatile_register(struct device *dev, unsigned int reg) case WM5100_OUTPUT_STATUS_2: case WM5100_INPUT_ENABLES_STATUS: case WM5100_MIC_DETECT_3: - return 1; + return true; default: if ((reg >= WM5100_DSP1_PM_0 && reg <= WM5100_DSP1_PM_1535) || (reg >= WM5100_DSP1_ZM_0 && reg <= WM5100_DSP1_ZM_2047) || @@ -41,9 +41,9 @@ bool wm5100_volatile_register(struct device *dev, unsigned int reg) (reg >= WM5100_DSP3_PM_0 && reg <= WM5100_DSP3_PM_1535) || (reg >= WM5100_DSP3_ZM_0 && reg <= WM5100_DSP3_ZM_2047) || (reg >= WM5100_DSP3_DM_0 && reg <= WM5100_DSP3_DM_511)) - return 1; + return true; else - return 0; + return false; } } @@ -798,7 +798,7 @@ bool wm5100_readable_register(struct device *dev, unsigned int reg) case WM5100_DSP3_CONTROL_28: case WM5100_DSP3_CONTROL_29: case WM5100_DSP3_CONTROL_30: - return 1; + return true; default: if ((reg >= WM5100_DSP1_PM_0 && reg <= WM5100_DSP1_PM_1535) || (reg >= WM5100_DSP1_ZM_0 && reg <= WM5100_DSP1_ZM_2047) || @@ -809,9 +809,9 @@ bool wm5100_readable_register(struct device *dev, unsigned int reg) (reg >= WM5100_DSP3_PM_0 && reg <= WM5100_DSP3_PM_1535) || (reg >= WM5100_DSP3_ZM_0 && reg <= WM5100_DSP3_ZM_2047) || (reg >= WM5100_DSP3_DM_0 && reg <= WM5100_DSP3_DM_511)) - return 1; + return true; else - return 0; + return false; } }