Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2096270ybl; Thu, 30 Jan 2020 11:17:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyPcHn9bzsHpD3SHXsg65GWV+pCBN8dJfm7x81/jbl/YNUJmHITi1/HjppKwUceK5cedghK X-Received: by 2002:a9d:674f:: with SMTP id w15mr4677851otm.243.1580411840097; Thu, 30 Jan 2020 11:17:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580411840; cv=none; d=google.com; s=arc-20160816; b=yI5rnEt6Axyiwd9DA6HFolniLzZrUDJQD1j4Rg50q1/wNN9VNFpaLK6vaQ8laJG0vq WMxN5iRKHypZnNZrNdgtdraUPUPtcBtt0ui/eHLbNow0tU1xSQ/R4gH2yZG6/bS9/qxF YNBh6jeL9D/HuwAaQ1obDvdw4q6DG5ix4m4yGVMF50aPmYBvsrH078+2F6tG7NUqyWlg N136MQMJMN+61Lt0E+BRlQsXAPlkNjHaKxFTuhLP7RgseIMHPTW0KtDPPHSMGbXVOQr2 AwU8AJXqEqwLd/ztjYmUVbmAV3cIu19wUyiCCaFfC+xxSu0cIeMJFew6aNCD3SX0u6gX Uwyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=S5AWo62z8WRu11jkNtqe+8Q5NmI65C+w8Jpa0uf5skw=; b=tPEahbEgvmosyEvX25ykvX9sNaLCdNz2ULRS4QeD/fMqktBt6XNPU84DyRovcJgFDJ mDHVVxR0g7PIwpj6RqLT9PqEIWThSmX0o/kS5l0d3TzuVoxayeT0Kcffhtrk5ePhaGX4 cNPf+7QmIpEeXg+S0uwtz0g6JZt3mRRLpVX5mNjBtvdtiO2qBzkQAD2KcMcqG0FVUynU k/eAGok9oaRz/818RrwJsIUB8H6FIE0rNBlGJXYH5/L3ZMfg9E9z+YhHadiAPliC7CLE poqaPSK0uD951O/Ide7E/bXgYrveYKV9p3NAT077iUJtEmVB9V3ZZ9tpQeKV194RqcDX 9iXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=STNT+7EH; 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 v67si3282774oia.26.2020.01.30.11.17.08; Thu, 30 Jan 2020 11:17:20 -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; dkim=pass header.i=@kernel.org header.s=default header.b=STNT+7EH; 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 S1730455AbgA3Smq (ORCPT + 99 others); Thu, 30 Jan 2020 13:42:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:51162 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730441AbgA3Smn (ORCPT ); Thu, 30 Jan 2020 13:42:43 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E751220702; Thu, 30 Jan 2020 18:42:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580409763; bh=IEY2DK0mVd3QRoS/LYnosAPqfWr7Mx1laUopAzlAE6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=STNT+7EHqubwYVZ7H6H/yrizqJaAbL+HLkSil1RFGyfiX5uwHW7hLZtw4hhFCfPKn kf0zTO0tCaRcUoo06b35RkDhNKTTDBjW4q+gjgwUagoT90uU3RIXXh1tsAJJOX+geS rEoF80omZN2IYTStA299jdD6rVfhgpMxmDQ7r538= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Olivier Moysan , Stable@vger.kernel.org, Fabrice Gasnier , Jonathan Cameron Subject: [PATCH 5.4 024/110] iio: adc: stm32-dfsdm: fix single conversion Date: Thu, 30 Jan 2020 19:38:00 +0100 Message-Id: <20200130183617.936420980@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200130183613.810054545@linuxfoundation.org> References: <20200130183613.810054545@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Olivier Moysan commit dc26935fb60e8da8d59655dd2ec0de47b20d7d8f upstream. Apply data formatting to single conversion, as this is already done in continuous and trigger modes. Fixes: 102afde62937 ("iio: adc: stm32-dfsdm: manage data resolution in trigger mode") Signed-off-by: Olivier Moysan Cc: Acked-by: Fabrice Gasnier Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/adc/stm32-dfsdm-adc.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/iio/adc/stm32-dfsdm-adc.c +++ b/drivers/iio/adc/stm32-dfsdm-adc.c @@ -1204,6 +1204,8 @@ static int stm32_dfsdm_single_conv(struc stm32_dfsdm_stop_conv(adc); + stm32_dfsdm_process_data(adc, res); + stop_dfsdm: stm32_dfsdm_stop_dfsdm(adc->dfsdm);