From patchwork Mon Aug 6 11:42:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 143488 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3183960ljj; Mon, 6 Aug 2018 04:42:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpckHqH44HfaDv+6qxzWQvD52AtN+bixneu/G3+p1eA14l1snwpmQqfVid9cCpe9kOG6P51b X-Received: by 2002:a1c:cecf:: with SMTP id e198-v6mr11187836wmg.83.1533555743266; Mon, 06 Aug 2018 04:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533555743; cv=none; d=google.com; s=arc-20160816; b=zAefMCqFQQdD4IBqiKKcJLezGL/7M87CrsnjOvOQyHCkE9MxWHDFZiUr8QPos+yxoy pZxG0DgVDqqKm69n2n9gnGls/X8pAS7HwAoy1UyJHcE6v6AhIreB9BYbzPfT0u0A0xWQ o84a6UhwM0thOGycJgEfTD6RYK8HZOqryG6aA2lVhfgrxIuQvX2VhMJ5DHRW21bA+5Ox qtedtD4jp9pWDkUW4G1Hw14pCa+1cY+X81RxW2tWEWGYQ+Bse2HvZqS/+tgHPE6ZfmQT qC+urPSFMUvZHKe5532W/jQOkdMXAKpaJYOYepD/8Q+wLNM6U0Wc1L+utC0VmpdROqXO bQTQ== 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=M67y709wsxlTMfVWbno7XEXOIJUJpSRhiMqYqG0JcmI=; b=FWaFanfSLdtpzTO8P9pRFwqw7pdTVpdUSN6gx60alYznGyYBO++FCnAIU3K6Wgs0jF KSDj/1OkFudx5yoCg+ac30J62U9YA1BhidUIP18UpMhBGbjY74Phu/q0yd6rHWx5GQ63 iPlR2V4Vm8DrKFpX0DU09MB3SlhATAVzVCK/DgWcSdT6VTi0vDv+80miTcTH9X0bisN6 W0v1IzlgIzB8RD4oq+wi0UYJbwbz97+yY4XorU73HwtPXZnS2U3W9saKXUFDDsatxQ2J XL4cHHt6hXwvBmB/+17RHcwH183we8+87K83ifVwb3z90cc9o3H6y7QjGQnVAoNo8JlK Jy5Q== 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=vnA8H+nv; 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 b134-v6si4923155wmg.89.2018.08.06.04.42.23; Mon, 06 Aug 2018 04:42:23 -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=vnA8H+nv; 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 2780126782E; Mon, 6 Aug 2018 13:42:22 +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 9A83B26782A; Mon, 6 Aug 2018 13:42:19 +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 09B32267833 for ; Mon, 6 Aug 2018 13:42:14 +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=kH5XXBhAq0eDVbfqOUAz+Aifd+I3Ckm/mkDewitsj2A=; b=vnA8H+nvqnh2 li4OrqvDrhqDbO4R5EMhLHCSrhhqjg4aTwQ73KwfdaNdaTbeqVs9IdFPJAlJMCL6tTHgbnihpSPSr S73Yz7kisumqgbWkBzIq4LleqgvJtDUj3DFan0TEh1trVecV3vSVMqkSz9dy8KuQEOEeM2EKzwa3C dzVXk=; 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 1fmdtu-0007qZ-Fb; Mon, 06 Aug 2018 11:42:14 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 32CB41124240; Mon, 6 Aug 2018 12:42:14 +0100 (BST) From: Mark Brown To: Gustavo A. R. Silva In-Reply-To: Message-Id: <20180806114214.32CB41124240@debutante.sirena.org.uk> Date: Mon, 6 Aug 2018 12:42:14 +0100 (BST) Cc: Brian Austin , alsa-devel@alsa-project.org, "Gustavo A. R. Silva" , linux-kernel@vger.kernel.org, Liam Girdwood , Paul Handrigan , Takashi Iwai , Mark Brown Subject: [alsa-devel] Applied "ASoC: cs4270: 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: cs4270: 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 c34c4515286f27e7e99d8a0011b4322d1de6c9bc Mon Sep 17 00:00:00 2001 From: "Gustavo A. R. Silva" Date: Sat, 4 Aug 2018 16:52:01 -0500 Subject: [PATCH] ASoC: cs4270: 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 Signed-off-by: Mark Brown --- sound/soc/codecs/cs4270.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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/cs4270.c b/sound/soc/codecs/cs4270.c index 2a7a4168c072..3c266eeb89bf 100644 --- a/sound/soc/codecs/cs4270.c +++ b/sound/soc/codecs/cs4270.c @@ -219,7 +219,7 @@ static bool cs4270_reg_is_volatile(struct device *dev, unsigned int reg) { /* Unreadable registers are considered volatile */ if ((reg < CS4270_FIRSTREG) || (reg > CS4270_LASTREG)) - return 1; + return true; return reg == CS4270_CHIPID; }