From patchwork Wed Feb 14 13:29:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 128338 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp611463ljc; Wed, 14 Feb 2018 05:31:25 -0800 (PST) X-Google-Smtp-Source: AH8x225XGfvz5N8q1W94EIrey/WZE5cwV+SgJP4IcA0++MS7flZUO+KWhhA6aj/UEaOZhwupV2cd X-Received: by 10.28.6.69 with SMTP id 66mr4099022wmg.67.1518615085554; Wed, 14 Feb 2018 05:31:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518615085; cv=none; d=google.com; s=arc-20160816; b=SW6EhyEmVoS2ydglKypzJGe3Hh6kZsEKtx3x+xOTHp7dCHlZeZTl3UZ+ELej+9quL1 Q/qSakBtgZW+QB99WcBRXsHYxVmn/JSBDbHHGLkK0OXhtGxEOWOlkpeSGjKnYDHPk6zg GPpqZkG4tf/2KSumJ0xxv7WN6awGJCiTTX+KCTE+VjKj6zCCksPXIfo2t8BzOIzEzfVd Nl0ZQAHtP8IaIt+wNygRUwpQcAGYP15cNcpOpvlgCaqkk48EayGtd0/OfFuxBSQeJ0ud /SghSnhEbSafr+Yb8/LBt7wEKrPneHgwaeohuK4ivucMtF7BJKVFzHIVhp7w33uNkJPX OZhw== 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=FYX/fAp6Dmjf90ffcyDZ6RLW/tg4D09rFZHISDHu8kg=; b=IU2hRz8Ip/8ASSca2p26bkA8PA/u73+ose4zyjYSgN/e3AhqPr7G9aOhFxeTxASbRt RgLOmXc2/50HObe93nG0LCbYphvMiMbrMMk0lxd87e3pvCT1LDZmjT4cf4XRRvbKPQg1 E1pL4fkwiSrWNZpbGTxGYq8r6d/uIvweGmxb6cQ/kkRQFfoUfV4dpOdsd5TgL754XDLP jquOVdBT6naLsICXJbX/klVzKYZhgbkxtoOM/XnULsX6GITqANO1eVUupVBhUClvivjp HqJwryrFfLkhguk62XVVmCgS/mii/iC/Aza3pOhUsRUBJBuuY9z7oIt+1OeZjLXqPgIL 46HQ== 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=Sj9sxdcZ; 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 Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id i63si6670306wmf.269.2018.02.14.05.31.25; Wed, 14 Feb 2018 05:31:25 -0800 (PST) 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=Sj9sxdcZ; 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 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id ED2AA267B22; Wed, 14 Feb 2018 14:30:33 +0100 (CET) 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 46DCE267BA3; Wed, 14 Feb 2018 14:30:32 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS, T_RP_MATCHES_RCVD 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 97D3B267B23 for ; Wed, 14 Feb 2018 14:29:37 +0100 (CET) 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=2TbobTSk82FKFOq43NIgOj9mt00MkxCK4FLkYaZpmUA=; b=Sj9sxdcZhS/Q +GMAYCpBVXXd/gHLDbaBoMc/6pu0mCp0JRhO5qhyTtAfqlFJ/GWamcU3gner8i4HzzLPbkUAeFZBt okSBatT2a9J1WLDXsAYsBqkmXZ7Dxa/xzdyNqDO2FlDxnbo+yc99JTQWFUCRX/lWi0RcI1zWTD/nA uS6/c=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1elx7v-0004qG-Ol; Wed, 14 Feb 2018 13:29:35 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1elx7v-00076R-BE; Wed, 14 Feb 2018 13:29:35 +0000 From: Mark Brown To: Fabio Estevam In-Reply-To: <1518550536-16279-2-git-send-email-festevam@gmail.com> Message-Id: Date: Wed, 14 Feb 2018 13:29:35 +0000 Cc: alsa-devel@alsa-project.org, broonie@kernel.org Subject: [alsa-devel] Applied "ASoC: tlv320aic3x: Use empty struct initializer" 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: tlv320aic3x: Use empty struct initializer 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 68fb425baea14f5647743eb56dc6675fcd8d93b3 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Tue, 13 Feb 2018 17:37:51 -0200 Subject: [PATCH] ASoC: tlv320aic3x: Use empty struct initializer { 0 } only clears the first member of the structure. The first member of the snd_soc_dapm_update struct is a pointer, and writing 0 to a pointer results in the following sparse warning: sound/soc/codecs/tlv320aic3x.c:175:47: warning: Using plain integer as NULL pointer Use the empty struct initializer that clears all the struct members and fixes the sparse warning. Signed-off-by: Fabio Estevam Signed-off-by: Mark Brown --- sound/soc/codecs/tlv320aic3x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.16.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c index dbfa0d8f11a3..6a271e6e6b8f 100644 --- a/sound/soc/codecs/tlv320aic3x.c +++ b/sound/soc/codecs/tlv320aic3x.c @@ -172,7 +172,7 @@ static int snd_soc_dapm_put_volsw_aic3x(struct snd_kcontrol *kcontrol, unsigned int mask = (1 << fls(max)) - 1; unsigned int invert = mc->invert; unsigned short val; - struct snd_soc_dapm_update update = { 0 }; + struct snd_soc_dapm_update update = {}; int connect, change; val = (ucontrol->value.integer.value[0] & mask);