Received: by 10.223.185.116 with SMTP id b49csp657872wrg; Fri, 23 Feb 2018 04:53:39 -0800 (PST) X-Google-Smtp-Source: AH8x226geF7r45ra5/iLrnV8oPNY2ApFnrIpGWTQfeS4EsoZfKV8WM82DARJVG9dhMhmISVFkRxC X-Received: by 10.99.171.70 with SMTP id k6mr1405078pgp.355.1519390419052; Fri, 23 Feb 2018 04:53:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519390419; cv=none; d=google.com; s=arc-20160816; b=Izq82WyNL5k+VBG1VjhJ6evE3ZV+LrudHuIeaxqVFSTOmHsO+MZxEcCyKx0NxhDyxf FmHAq21G4BM2mVkiZ9JrUghWbl7DHX7KEZsVyT/B6ux8Gi//raMObdR+rGlZbn1XM4PA aZn9rPrpSj7rDgxRJuMfTadjodK3S6ZqouX6rNJZ8GsKYmFSrXp/P8vCW4zXDif5+OC4 Gpk/0r5fJW+gfS+oZ9YPiAVwklcJFqTEWdQyPH+cXAFtIM3esv0WqpdkW2/DTB8rliRu Q2np/C1OtlC67eWDSu7AhBP/ogPzZeDSwEFDnBDbMeNYqI2nw9Z+TVnTHjUP0O3tAJbY oUXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=1+EgVzSojiFFLJ66PGFSJ0cceZP80pBj7mhUDwZPhag=; b=dtCcch85RrZ53VvLMlPvvSHaTarTtwMqmTxE2g3Ux3lRcBfhemovR0F/4gTNiN+D0Y VOfc8jtEce6wO3hAQUPFQHf8iOO+rEUUdeGII8jpH0z8nv1NgLJvZT/SldChTH0iRCrv VPd+28HELm8aTy8TqhmHImh3OgXZ7kPdc/dzaxMfOul1Akvb2M3Y86KffBwB4uiejNsn /suKZCZI/T6DDdwmSdKi6P79fGvm8U2wnpBlTO3D3PGULSheBSn5nuxl7FEmgEh8E3IS Olc2HUbh5r6Xl9WctjCzML7Qd0R804uP5wfBJNrIOwWQSSO+p14eXXme2KFUcdXM4rNG 29hg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o17si1490805pgc.665.2018.02.23.04.53.24; Fri, 23 Feb 2018 04:53:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751470AbeBWMwF (ORCPT + 99 others); Fri, 23 Feb 2018 07:52:05 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:53949 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751411AbeBWMwC (ORCPT ); Fri, 23 Feb 2018 07:52:02 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w1NCnFST015303; Fri, 23 Feb 2018 13:51:20 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2g9bpka35c-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 23 Feb 2018 13:51:20 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4DDFD31; Fri, 23 Feb 2018 12:51:19 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 269AC4DB6; Fri, 23 Feb 2018 12:51:19 +0000 (GMT) Received: from localhost (10.75.127.45) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 23 Feb 2018 13:51:18 +0100 From: Fabrice Gasnier To: CC: , , , , , , , , , , Subject: [PATCH 2/7] iio: adc: stm32-dfsdm: fix call to stop channel Date: Fri, 23 Feb 2018 13:50:56 +0100 Message-ID: <1519390261-25453-3-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1519390261-25453-1-git-send-email-fabrice.gasnier@st.com> References: <1519390261-25453-1-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG5NODE1.st.com (10.75.127.13) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-23_04:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org stm32_dfsdm_stop_channel must be called with channel id, not filter id. Fixes: e2e6771c6462 ("IIO: ADC: add STM32 DFSDM sigma delta ADC support") Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/stm32-dfsdm-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c index daa026d..0eff811 100644 --- a/drivers/iio/adc/stm32-dfsdm-adc.c +++ b/drivers/iio/adc/stm32-dfsdm-adc.c @@ -464,7 +464,7 @@ static int stm32_dfsdm_start_conv(struct stm32_dfsdm_adc *adc, bool dma) regmap_update_bits(regmap, DFSDM_CR1(adc->fl_id), DFSDM_CR1_RCONT_MASK, 0); - stm32_dfsdm_stop_channel(adc->dfsdm, adc->fl_id); + stm32_dfsdm_stop_channel(adc->dfsdm, adc->ch_id); return ret; } -- 1.9.1