From patchwork Thu Jan 11 12:30:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 124190 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp611061qgn; Thu, 11 Jan 2018 04:31:04 -0800 (PST) X-Google-Smtp-Source: ACJfBovmvgxwOqjQm8GSevHskKc4r5ywCtDdeppPp8Pz8RhJAVkkvtGip9gi64dKXJR3EtBes3Su X-Received: by 10.28.134.143 with SMTP id i137mr1160343wmd.2.1515673864697; Thu, 11 Jan 2018 04:31:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515673864; cv=none; d=google.com; s=arc-20160816; b=VII/ok47EH7t1eUsXoXF69GfObjxdfiOIxmVDESha+0BpEgij2tzhmqL1Y3T3fw1qO 7sa0JrxuFbQ9Bv2/smNj+Ie5xh9vFFGfUdBhgLsnSMl+QnJvIpmeqw35s/XKW7EOp1g1 gk064mzh4rwIRI8iydU8oqvMPvgNLRuH2XvncuyrvDFmbp4FxfG8A/kHyrF4txcR/15M kscykBViQ/cC/oppjMFuRHlwc6izRtcUGn59/pnRWbrZw0rH51dWCCqzTZe7c6U/+2Zt HTK55uPoAIcoOPr3PiN9UXCiAOg+sepy8D4wnV19INsWodH8CiNjzOopfZzwkw4guu+O mcLQ== 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=Wrr4ln/JL7ooCbtbvwCwLZcQZAob2AyiKK561VuSeM0=; b=ySKFLb4zkqj0OjfZSpjg5b5SdqlphDa853x3oJHRVTAu4rgigMp+ZqqztZXT/jzNYH yYrFJWpspSMopiojHZ3XzItmi91lRygJuDW6Q18vVSWw0pnkW6ObQ3DJZv/69Oj63IBU VLTdl2S6E58pvk/2Uacy7Qvr4ubGIk83wo1tdRaaACyZ/mvVoz3J1T1JwbHIS0nOSdtC MeVwwhcF319gqM8hYAVT7q6f3y7rfiCN8qZbnAv3ONZrWnuIGtWQhf+r9sIUitdKMSqA yePdTUzn8+7oXFT2EGI7Y+Omq8fDljQtv3s4Q3gN7824lQAXnAO9OfOBoCNWSRp94xXA gKGg== 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=sWxUtZsO; 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 x23si14545908wrb.430.2018.01.11.04.31.04; Thu, 11 Jan 2018 04:31:04 -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=sWxUtZsO; 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 629032678BD; Thu, 11 Jan 2018 13:31:03 +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 117F02678EC; Thu, 11 Jan 2018 13:31:02 +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 F1671266E3A for ; Thu, 11 Jan 2018 13:30:58 +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=9eykti8BQnOSxtV/kXlTRWF2R1VEWVMbm8FbWo5GhxU=; b=sWxUtZsOqJBE DQo5L2BjwDGJzcIWZ+jSL/E1Z1eOn6alVA96bO8jOopDRzJOaL2UaAJq+9D9IiJGWDIBF6msiVw46 HjAL9Bfr9SdHufYdRvFK7WUAQ30CDG164+thrk0Y5JrrLg01ebp/X/pb10CGRIk156WeERzcsD7mm izHfc=; 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 1eZc0Y-00028I-8X; Thu, 11 Jan 2018 12:30:58 +0000 Received: from broonie by debutante with local (Exim 4.90) (envelope-from ) id 1eZc0X-0007OX-Q5; Thu, 11 Jan 2018 12:30:57 +0000 From: Mark Brown To: Arnd Bergmann In-Reply-To: Message-Id: Date: Thu, 11 Jan 2018 12:30:57 +0000 Cc: alsa-devel@alsa-project.org, Mark Brown Subject: [alsa-devel] Applied "IIO: ADC: stm32-dfsdm: avoid unused-variable warning" 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 IIO: ADC: stm32-dfsdm: avoid unused-variable warning 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 25140717414c319bcc44b5aac39357a52d0bc8e0 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Thu, 11 Jan 2018 11:34:46 +0100 Subject: [PATCH] IIO: ADC: stm32-dfsdm: avoid unused-variable warning Building with CONFIG_OF disabled produces a compiler warning: drivers/iio/adc/stm32-dfsdm-core.c: In function 'stm32_dfsdm_probe': drivers/iio/adc/stm32-dfsdm-core.c:245:22: error: unused variable 'pnode' [-Werror=unused-variable] This removes the variable and open-codes it in the only place it gets used to avoid that warning. Fixes: bed73904e76f ("IIO: ADC: add stm32 DFSDM core support") Signed-off-by: Arnd Bergmann Signed-off-by: Mark Brown --- drivers/iio/adc/stm32-dfsdm-core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.15.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/drivers/iio/adc/stm32-dfsdm-core.c b/drivers/iio/adc/stm32-dfsdm-core.c index 72427414db7f..6cd655f8239b 100644 --- a/drivers/iio/adc/stm32-dfsdm-core.c +++ b/drivers/iio/adc/stm32-dfsdm-core.c @@ -242,7 +242,6 @@ MODULE_DEVICE_TABLE(of, stm32_dfsdm_of_match); static int stm32_dfsdm_probe(struct platform_device *pdev) { struct dfsdm_priv *priv; - struct device_node *pnode = pdev->dev.of_node; const struct of_device_id *of_id; const struct stm32_dfsdm_dev_data *dev_data; struct stm32_dfsdm *dfsdm; @@ -254,7 +253,7 @@ static int stm32_dfsdm_probe(struct platform_device *pdev) priv->pdev = pdev; - of_id = of_match_node(stm32_dfsdm_of_match, pnode); + of_id = of_match_node(stm32_dfsdm_of_match, pdev->dev.of_node); if (!of_id->data) { dev_err(&pdev->dev, "Data associated to device is missing\n"); return -EINVAL;